PM: Introduce PM_EVENT_HIBERNATE callback state
[safe/jmp/linux-2.6] / drivers / scsi / aic7xxx / aic7xxx_osm_pci.c
index dd6e21d..3d3eaef 100644 (file)
@@ -134,7 +134,7 @@ ahc_linux_pci_dev_suspend(struct pci_dev *pdev, pm_message_t mesg)
        pci_save_state(pdev);
        pci_disable_device(pdev);
 
-       if (mesg.event == PM_EVENT_SUSPEND)
+       if (mesg.event & PM_EVENT_SLEEP)
                pci_set_power_state(pdev, PCI_D3hot);
 
        return rc;