Skip to content

Commit

Permalink
chipsfb: use correct pm state
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed Jul 26, 2007
1 parent 780dcdb commit 26b9723
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/video/chipsfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 26b9723

Please sign in to comment.