]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - drivers/macintosh/via-pmu.c
[PATCH] fix few remaining u32 vs. pm_message_t problems
[linux-3.10.git] / drivers / macintosh / via-pmu.c
index cea1e758eb469b9194787a2fa98c6184f888a57a..fdea1a3a631dc122b1e220d2b59f5c120174aec5 100644 (file)
@@ -2371,7 +2371,7 @@ pmac_suspend_devices(void)
         * use this but still... This will take care of sysdev's as well, so
         * we exit from here with local irqs disabled and PIC off.
         */
-       ret = device_power_down(PM_SUSPEND_MEM);
+       ret = device_power_down(PMSG_SUSPEND);
        if (ret) {
                wakeup_decrementer();
                local_irq_enable();
@@ -3052,7 +3052,7 @@ pmu_polled_request(struct adb_request *req)
 
 static int pmu_sys_suspended = 0;
 
-static int pmu_sys_suspend(struct sys_device *sysdev, u32 state)
+static int pmu_sys_suspend(struct sys_device *sysdev, pm_message_t state)
 {
        if (state != PM_SUSPEND_DISK || pmu_sys_suspended)
                return 0;