From b7cde7078d2344073c310aa65fc2b0a845d2cb5b Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Wed, 25 Jun 2014 16:14:47 +0900 Subject: mfd: sec-core: Prepare regulators for suspend state to reduce power-consumption This patch use regulator_suspend_prepare() function to prepare the proper state of regulators for suspend state to remove un-necessary leakage power-consumption. Signed-off-by: Chanwoo Choi Signed-off-by: Lee Jones --- drivers/mfd/sec-core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'drivers/mfd/sec-core.c') diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c index 2621328851ba..fb8ba6438268 100644 --- a/drivers/mfd/sec-core.c +++ b/drivers/mfd/sec-core.c @@ -31,6 +31,7 @@ #include #include #include +#include #include static const struct mfd_cell s5m8751_devs[] = { @@ -430,6 +431,15 @@ static int sec_pmic_suspend(struct device *dev) */ disable_irq(sec_pmic->irq); + switch (sec_pmic->device_type) { + case S2MPS14X: + case S2MPU02: + regulator_suspend_prepare(PM_SUSPEND_MEM); + break; + default: + break; + } + return 0; } -- cgit v1.2.3-73-gaa49b