]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
smsc911x: fix platform resource call during module unload
authorSteve Glendinning <steve.glendinning@smsc.com>
Fri, 26 Dec 2008 00:44:01 +0000 (16:44 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 00:44:01 +0000 (16:44 -0800)
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>
drivers/net/smsc911x.c

index d94560f9eac772b8473e8e64f445623aa6efc6b8..5e989d884dddc9bc13e3f14ca7bde9749332b0cf 100644 (file)
@@ -1874,7 +1874,7 @@ static int __devexit smsc911x_drv_remove(struct platform_device *pdev)
        res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
                                           "smsc911x-memory");
        if (!res)
-               platform_get_resource(pdev, IORESOURCE_MEM, 0);
+               res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 
        release_mem_region(res->start, res->end - res->start);