mmc: omap_hsmmc: Use regulator_set_enable_if_allowed for enabling regulator
authorLokesh Vutla <lokeshvutla@ti.com>
Fri, 11 Jan 2019 09:45:52 +0000 (15:15 +0530)
committerSimon Glass <sjg@chromium.org>
Sat, 9 Feb 2019 19:50:22 +0000 (12:50 -0700)
commitd3de38554a35e96872e43644b683e32f018c46a8
tree84c549f746ed0b600deedf86783738455e858497
parentcc4a224af226b2ea818d32af26742aaad8a3983e
mmc: omap_hsmmc: Use regulator_set_enable_if_allowed for enabling regulator

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.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/mmc/omap_hsmmc.c