- patches.fixes/patch-2.6.11-rc1: 2.6.11-rc1.
[linux-flexiantxendom0-3.2.10.git] / drivers / net / pci-skeleton.c
index 81dee74..bb1c3d8 100644 (file)
@@ -1921,7 +1921,7 @@ static int netdrv_suspend (struct pci_dev *pdev, u32 state)
        spin_unlock_irqrestore (&tp->lock, flags);
 
        pci_save_state (pdev);
-       pci_set_power_state (pdev, 3);
+       pci_set_power_state (pdev, PCI_D3hot);
 
        return 0;
 }
@@ -1934,7 +1934,7 @@ static int netdrv_resume (struct pci_dev *pdev)
 
        if (!netif_running(dev))
                return 0;
-       pci_set_power_state (pdev, 0);
+       pci_set_power_state (pdev, PCI_D0);
        pci_restore_state (pdev);
        netif_device_attach (dev);
        netdrv_hw_start (dev);