]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/ne2k-pci.c
Pull sn_pci_legacy_read-write into release branch
[linux-2.6-omap-h63xx.git] / drivers / net / ne2k-pci.c
index a1a6c08e7dcf2bd5b9616a84b2e418e4c7179810..f1c01ac2910239206fc892516057ef4bf85bb0c3 100644 (file)
@@ -660,6 +660,7 @@ static int ne2k_pci_suspend (struct pci_dev *pdev, pm_message_t state)
 
        netif_device_detach(dev);
        pci_save_state(pdev);
+       pci_disable_device(pdev);
        pci_set_power_state(pdev, pci_choose_state(pdev, state));
 
        return 0;
@@ -671,6 +672,8 @@ static int ne2k_pci_resume (struct pci_dev *pdev)
 
        pci_set_power_state(pdev, 0);
        pci_restore_state(pdev);
+       pci_enable_device(pdev);
+       pci_set_master(pdev);
        NS8390_init(dev, 1);
        netif_device_attach(dev);