]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: host: omap_hsmmc: return error if any of the regulator APIs fail
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 27 Aug 2015 09:13:59 +0000 (14:43 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 27 Aug 2015 12:54:06 +0000 (14:54 +0200)
commit325a84fa0a4cb605161446a3ade2059656af8405
tree151916f2acce6711a5cd974ba9d3a60065c99e7d
parentb7eae3c0589098a857244fd807cfc1d092de12ae
mmc: host: omap_hsmmc: return error if any of the regulator APIs fail

Return error if any of the regulator APIs (regulator_enable,
regulator_disable, regulator_set_voltage) fails in
omap_hsmmc_set_power to avoid undefined behavior.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/omap_hsmmc.c