aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e100.c
diff options
context:
space:
mode:
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)