diff options
author | Steve Glendinning <steve.glendinning@smsc.com> | 2008-12-25 19:44:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-25 19:44:01 -0500 |
commit | d45227391c70ea12ec129ebfa97841e9b7ff34fd (patch) | |
tree | c9e7af6446084799a680b2b01d44f12b87209e30 /drivers/net/smsc911x.c | |
parent | dc26977f77dd3486b59516d2cc03627009c0d4c6 (diff) |
smsc911x: fix platform resource call during module unload
This patch fixes a typo, the platform_get_resource calls in
smsc911x_drv_remove are supposed to look the same as those in
smsc911x_drv_probe.
Reported and fixed by dfoley@telus.net.
Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/smsc911x.c')
-rw-r--r-- | drivers/net/smsc911x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/smsc911x.c b/drivers/net/smsc911x.c index d94560f9eac7..5e989d884ddd 100644 --- a/drivers/net/smsc911x.c +++ b/drivers/net/smsc911x.c | |||
@@ -1874,7 +1874,7 @@ static int __devexit smsc911x_drv_remove(struct platform_device *pdev) | |||
1874 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, | 1874 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, |
1875 | "smsc911x-memory"); | 1875 | "smsc911x-memory"); |
1876 | if (!res) | 1876 | if (!res) |
1877 | platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1877 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1878 | 1878 | ||
1879 | release_mem_region(res->start, res->end - res->start); | 1879 | release_mem_region(res->start, res->end - res->start); |
1880 | 1880 | ||