X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=drivers%2Fscsi%2Faic7xxx%2Faic7xxx_osm_pci.c;h=3d3eaef65fb3e6ded30a548eb7e1d25eab1e5300;hb=3a2d5b700132f35401f1d9e22fe3c2cab02c2549;hp=dd6e21d6f1dd36ae12ec4b18eebb1e7e53c6ce9b;hpb=39273b58a409cd6d65c9732bdca00bacd1626672;p=safe%2Fjmp%2Flinux-2.6 diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c index dd6e21d..3d3eaef 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c @@ -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;