Commit b99e712b authored by Andrew Morton's avatar Andrew Morton Committed by Jeff Garzik

[PATCH] ne2k-pci pci build fix

Fix for updated pci_{save,restore}_state()
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent d463905a
...@@ -659,7 +659,7 @@ static int ne2k_pci_suspend (struct pci_dev *pdev, u32 state) ...@@ -659,7 +659,7 @@ static int ne2k_pci_suspend (struct pci_dev *pdev, u32 state)
struct net_device *dev = pci_get_drvdata (pdev); struct net_device *dev = pci_get_drvdata (pdev);
netif_device_detach(dev); netif_device_detach(dev);
pci_save_state(pdev, pdev->saved_config_space); pci_save_state(pdev);
pci_set_power_state(pdev, state); pci_set_power_state(pdev, state);
return 0; return 0;
...@@ -670,7 +670,7 @@ static int ne2k_pci_resume (struct pci_dev *pdev) ...@@ -670,7 +670,7 @@ static int ne2k_pci_resume (struct pci_dev *pdev)
struct net_device *dev = pci_get_drvdata (pdev); struct net_device *dev = pci_get_drvdata (pdev);
pci_set_power_state(pdev, 0); pci_set_power_state(pdev, 0);
pci_restore_state(pdev, pdev->saved_config_space); pci_restore_state(pdev);
NS8390_init(dev, 1); NS8390_init(dev, 1);
netif_device_attach(dev); netif_device_attach(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment