PM core: rename suspend and resume functions
[sfrench/cifs-2.6.git] / kernel / power / main.c
index 2f6638ee03c05649b8039a6fc6bd7fa01d1e19fc..46386b9f8dd1780932b652ed9a82a924b3b8124a 100644 (file)
@@ -295,7 +295,7 @@ static int suspend_enter(suspend_state_t state)
                        return error;
        }
 
-       error = device_suspend_noirq(PMSG_SUSPEND);
+       error = dpm_suspend_noirq(PMSG_SUSPEND);
        if (error) {
                printk(KERN_ERR "PM: Some devices failed to power down\n");
                goto Platfrom_finish;
@@ -335,7 +335,7 @@ static int suspend_enter(suspend_state_t state)
                suspend_ops->wake();
 
  Power_up_devices:
-       device_resume_noirq(PMSG_RESUME);
+       dpm_resume_noirq(PMSG_RESUME);
 
  Platfrom_finish:
        if (suspend_ops->finish)
@@ -363,7 +363,7 @@ int suspend_devices_and_enter(suspend_state_t state)
        }
        suspend_console();
        suspend_test_start();
-       error = device_suspend(PMSG_SUSPEND);
+       error = dpm_suspend_start(PMSG_SUSPEND);
        if (error) {
                printk(KERN_ERR "PM: Some devices failed to suspend\n");
                goto Recover_platform;
@@ -376,7 +376,7 @@ int suspend_devices_and_enter(suspend_state_t state)
 
  Resume_devices:
        suspend_test_start();
-       device_resume(PMSG_RESUME);
+       dpm_resume_end(PMSG_RESUME);
        suspend_test_finish("resume devices");
        resume_console();
  Close: