[U-Boot] [PATCH 3/3] mmc: omap_hsmmc: Use regulator_set_enable_if_allowed for enabling regulator

Simon Glass sjg at chromium.org
Thu Jan 10 12:56:49 UTC 2019


On Sun, 6 Jan 2019 at 23:13, Lokesh Vutla <lokeshvutla at ti.com> wrote:
>
> Use regulator_set_enable_if_allowed() api instead of regulator_set_enable()
> while enabling io regulators. This way the driver doesn't see an error
> when disabling an always-on regulator and when enabling is not supported.
>
> Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
> ---
>  drivers/mmc/omap_hsmmc.c | 16 ++++++++--------
>  1 file changed, 8 insertions(+), 8 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list