From: Rafael J. Wysocki Date: Thu, 26 Jul 2007 17:41:12 +0000 (-0700) Subject: chipsfb: use correct pm state X-Git-Tag: v2.6.23-rc2~208 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=26b97237f7eee977eb8beb59adbbf0a8ab4f8276;p=linux-2.6-omap-h63xx.git chipsfb: use correct pm state chipsfb.c shouldn't use PM_SUSPEND_MEM in there, but PM_EVENT_SUSPEND. Cc: Cedric Le Goater Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/chipsfb.c b/drivers/video/chipsfb.c index f48e8c534c8..6796ba62c3c 100644 --- a/drivers/video/chipsfb.c +++ b/drivers/video/chipsfb.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -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();