PM: Rename device_power_down/up()
[sfrench/cifs-2.6.git] / kernel / power / main.c
index 868028280d13474811810098cfa0f1923d212b32..2f6638ee03c05649b8039a6fc6bd7fa01d1e19fc 100644 (file)
@@ -295,7 +295,7 @@ static int suspend_enter(suspend_state_t state)
                        return error;
        }
 
-       error = device_power_down(PMSG_SUSPEND);
+       error = device_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_power_up(PMSG_RESUME);
+       device_resume_noirq(PMSG_RESUME);
 
  Platfrom_finish:
        if (suspend_ops->finish)