Revert "regulator: Handle suspend and resume of regulators"
authorJonghwa Lee <jonghwa3.lee@samsung.com>
Wed, 14 May 2014 01:36:00 +0000 (10:36 +0900)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:52 +0000 (11:47 +0900)
This reverts commit bdc1383dd59ea144e4acdb97c6077c09f371df78.

I revert the commit because it is not merged to ML.

Change-Id: I8c616af1429a4c53d263c99baa05d35e379635e5
Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
drivers/regulator/core.c

index 66877ef..a86d123 100644 (file)
@@ -3938,32 +3938,6 @@ static const struct file_operations supply_map_fops = {
 #endif
 };
 
-static int regulator_pm_notify(struct notifier_block *nb,
-                                               unsigned long event, void *ptr)
-{
-       int ret;
-
-       switch (event) {
-       case PM_SUSPEND_PREPARE:
-               ret = regulator_suspend_prepare(PM_SUSPEND_MEM);
-               break;
-       case PM_HIBERNATION_PREPARE:
-               ret = regulator_suspend_prepare(PM_SUSPEND_MAX);
-               break;
-       case PM_POST_SUSPEND:
-       case PM_POST_HIBERNATION:
-               ret = regulator_suspend_finish();
-               break;
-       default:
-               return NOTIFY_DONE;
-       }
-
-       if (ret)
-               return NOTIFY_BAD;
-
-       return NOTIFY_OK;
-}
-
 static int __init regulator_init(void)
 {
        int ret;
@@ -3979,8 +3953,6 @@ static int __init regulator_init(void)
 
        regulator_dummy_init();
 
-       pm_notifier(regulator_pm_notify, 0);
-
        return ret;
 }