PM: Rename device_power_down/up()
[sfrench/cifs-2.6.git] / drivers / xen / manage.c
index 4b5b84837ee13c85fab14a73c7ab213f74af90e2..d5b327ac4039b3d67b68ed1b9bb185ee2bf93e00 100644 (file)
@@ -43,7 +43,7 @@ static int xen_suspend(void *data)
        if (err) {
                printk(KERN_ERR "xen_suspend: sysdev_suspend failed: %d\n",
                        err);
-               device_power_up(PMSG_RESUME);
+               device_resume_noirq(PMSG_RESUME);
                return err;
        }
 
@@ -69,7 +69,7 @@ static int xen_suspend(void *data)
        }
 
        sysdev_resume();
-       device_power_up(PMSG_RESUME);
+       device_resume_noirq(PMSG_RESUME);
 
        return 0;
 }
@@ -98,13 +98,12 @@ static void do_suspend(void)
                goto out;
        }
 
-       printk("suspending xenbus...\n");
-       /* XXX use normal device tree? */
-       xenbus_suspend();
+       printk(KERN_DEBUG "suspending xenstore...\n");
+       xs_suspend();
 
-       err = device_power_down(PMSG_SUSPEND);
+       err = device_suspend_noirq(PMSG_SUSPEND);
        if (err) {
-               printk(KERN_ERR "device_power_down failed: %d\n", err);
+               printk(KERN_ERR "device_suspend_noirq failed: %d\n", err);
                goto resume_devices;
        }
 
@@ -116,11 +115,11 @@ static void do_suspend(void)
 
        if (!cancelled) {
                xen_arch_resume();
-               xenbus_resume();
+               xs_resume();
        } else
-               xenbus_suspend_cancel();
+               xs_suspend_cancel();
 
-       device_power_up(PMSG_RESUME);
+       device_resume_noirq(PMSG_RESUME);
 
 resume_devices:
        device_resume(PMSG_RESUME);