aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e100.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-06-23 20:35:56 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-06-28 00:52:47 -0400
commitd18c3db58bc544fce6662ca7edba616ca9788a70 (patch)
treedd4c2d2c0bef6d47a32452112a9396a3137d8c10 /drivers/net/e100.c
parent4002307d2b563a6ab317ca4d7eb1d201a6673d37 (diff)
[PATCH] PCI: make drivers use the pci shutdown callback instead of the driver core callback.
Now we can change the pci core to always set this pointer, as pci drivers should use it, not the driver core callback. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net/e100.c')
-rw-r--r--drivers/net/e100.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/e100.c b/drivers/net/e100.c
index cfaa6b2bf345..be973a1c3c53 100644
--- a/drivers/net/e100.c
+++ b/drivers/net/e100.c
@@ -2440,9 +2440,8 @@ static int e100_resume(struct pci_dev *pdev)
2440#endif 2440#endif
2441 2441
2442 2442
2443static void e100_shutdown(struct device *dev) 2443static void e100_shutdown(struct pci_dev *pdev)
2444{ 2444{
2445 struct pci_dev *pdev = container_of(dev, struct pci_dev, dev);
2446 struct net_device *netdev = pci_get_drvdata(pdev); 2445 struct net_device *netdev = pci_get_drvdata(pdev);
2447 struct nic *nic = netdev_priv(netdev); 2446 struct nic *nic = netdev_priv(netdev);
2448 2447
@@ -2463,11 +2462,7 @@ static struct pci_driver e100_driver = {
2463 .suspend = e100_suspend, 2462 .suspend = e100_suspend,
2464 .resume = e100_resume, 2463 .resume = e100_resume,
2465#endif 2464#endif
2466 2465 .shutdown = e100_shutdown,
2467 .driver = {
2468 .shutdown = e100_shutdown,
2469 }
2470
2471}; 2466};
2472 2467
2473static int __init e100_init_module(void) 2468static int __init e100_init_module(void)