lkml.org 
[lkml]   [2014]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] regulator: core: allow enabling without enable op
From
On 25 February 2014 12:27, Alexandre Courbot <acourbot@nvidia.com> wrote:
> Commit 14c32a3ce6676265d7a27ea64a4d406e6dbad111 replaced direct uses of
> ops->enable by calls to _regulator_do_enable. This prevents a fixed
> regulators without a GPIO from being probed, since the former code
> checked the existence of ops->enable and continued if it did not exist,
> while _regulator_do_enable return -EINVAL in that case.
>
> This patch fixes this by allowing _regulator_do_enable to go through
> without error if ops->enable is not defined, similarly to what
> _regulator_do_disable already does.
>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>

This patch fixes the fixed regulator registration failure on Exynos5420 board.

Tested-by: Sachin Kamat <sachin.kamat@linaro.org>

--
With warm regards,
Sachin


\
 
 \ /
  Last update: 2014-02-25 12:21    [W:0.074 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site