]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "mfd: sec-core: Prepare regulators for suspend state to reduce power-consumption"
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Mon, 20 Oct 2014 21:05:50 +0000 (23:05 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 25 Nov 2014 16:18:47 +0000 (16:18 +0000)
commit47b3a48d0a8b667360e904df6aa883ed7d61cb89
tree71940f7a54d2d70d66a8f4929837a0c6637a34a8
parent5399ea23591a33bf8f5ef733c0dda9a6b2101ea0
Revert "mfd: sec-core: Prepare regulators for suspend state to reduce power-consumption"

This reverts commit b1639bf920c82310640ad9bcbd10d1fde4948f51
("mfd: sec-core: Prepare regulators for suspend state to reduce power-consumption")

Commit b1639bf920c8 called regulator_suspend_prepare() to prepare the
regulators for a suspend state. But it did from the device pm suspend
handler while the regulator suspend prepare function iterates over all
regulators and not only the one managed by this device so it doesn't
seems to be correct to call it from within a device driver.

It is better to call the regulator suspend prepare/finish functions
from platform code instead so this patch reverts the mentioned commit.

Suggested-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/Kconfig
drivers/mfd/sec-core.c