]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
chipsfb: use correct pm state
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 26 Jul 2007 17:41:12 +0000 (10:41 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 26 Jul 2007 18:35:18 +0000 (11:35 -0700)
chipsfb.c shouldn't use PM_SUSPEND_MEM in there, but PM_EVENT_SUSPEND.

Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/chipsfb.c

index f48e8c534c8797f228c1a75162735b602a71e94a..6796ba62c3c6ca849d599e1ff74075168aad6855 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/delay.h>
 #include <linux/interrupt.h>
 #include <linux/fb.h>
+#include <linux/pm.h>
 #include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/console.h>
@@ -458,7 +459,7 @@ static int chipsfb_pci_suspend(struct pci_dev *pdev, pm_message_t state)
 
        if (state.event == pdev->dev.power.power_state.event)
                return 0;
-       if (state.event != PM_SUSPEND_MEM)
+       if (state.event != PM_EVENT_SUSPEND)
                goto done;
 
        acquire_console_sem();