diff options
Diffstat (limited to 'drivers/net/ethernet/smsc/smsc911x.c')
-rw-r--r-- | drivers/net/ethernet/smsc/smsc911x.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/smsc/smsc911x.c b/drivers/net/ethernet/smsc/smsc911x.c index 3663b9e04a31..a1419211585b 100644 --- a/drivers/net/ethernet/smsc/smsc911x.c +++ b/drivers/net/ethernet/smsc/smsc911x.c | |||
@@ -2284,7 +2284,6 @@ static int smsc911x_drv_remove(struct platform_device *pdev) | |||
2284 | mdiobus_unregister(pdata->mii_bus); | 2284 | mdiobus_unregister(pdata->mii_bus); |
2285 | mdiobus_free(pdata->mii_bus); | 2285 | mdiobus_free(pdata->mii_bus); |
2286 | 2286 | ||
2287 | platform_set_drvdata(pdev, NULL); | ||
2288 | unregister_netdev(dev); | 2287 | unregister_netdev(dev); |
2289 | free_irq(dev->irq, dev); | 2288 | free_irq(dev->irq, dev); |
2290 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, | 2289 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, |
@@ -2539,7 +2538,6 @@ out_disable_resources: | |||
2539 | out_enable_resources_fail: | 2538 | out_enable_resources_fail: |
2540 | smsc911x_free_resources(pdev); | 2539 | smsc911x_free_resources(pdev); |
2541 | out_request_resources_fail: | 2540 | out_request_resources_fail: |
2542 | platform_set_drvdata(pdev, NULL); | ||
2543 | iounmap(pdata->ioaddr); | 2541 | iounmap(pdata->ioaddr); |
2544 | free_netdev(dev); | 2542 | free_netdev(dev); |
2545 | out_release_io_1: | 2543 | out_release_io_1: |