]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/macintosh/via-pmu.c
ARM: OMAP: Fixed compile for I2C
[linux-2.6-omap-h63xx.git] / drivers / macintosh / via-pmu.c
index 4a0a0ad2d03c09e7bff0e9185c4355e274514264..645a2e5c70ab494298b9d0359dcb38726d5fe4d6 100644 (file)
@@ -3065,7 +3065,7 @@ static int pmu_sys_suspended = 0;
 
 static int pmu_sys_suspend(struct sys_device *sysdev, pm_message_t state)
 {
-       if (state != PM_SUSPEND_DISK || pmu_sys_suspended)
+       if (state.event != PM_EVENT_SUSPEND || pmu_sys_suspended)
                return 0;
 
        /* Suspend PMU event interrupts */