diff options
Diffstat (limited to 'drivers/net/smc91x.c')
-rw-r--r-- | drivers/net/smc91x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index ceed2f69216a..e332a518efe8 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -2262,7 +2262,7 @@ static int smc_drv_remove(struct platform_device *pdev) | |||
2262 | 2262 | ||
2263 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs"); | 2263 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "smc91x-regs"); |
2264 | if (!res) | 2264 | if (!res) |
2265 | platform_get_resource(pdev, IORESOURCE_MEM, 0); | 2265 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
2266 | release_mem_region(res->start, SMC_IO_EXTENT); | 2266 | release_mem_region(res->start, SMC_IO_EXTENT); |
2267 | 2267 | ||
2268 | free_netdev(ndev); | 2268 | free_netdev(ndev); |