[PATCH] iomem annotations (ac3200.c)
authorviro@ftp.linux.org.uk <viro@ftp.linux.org.uk>
Tue, 6 Sep 2005 00:36:58 +0000 (01:36 +0100)
committerJeff Garzik <jgarzik@pobox.com>
Wed, 7 Sep 2005 02:17:12 +0000 (22:17 -0400)
no need to mess with (wrong) casts for ->mem_start, when we have the
original iomem pointer used to set ->mem_start in the first place...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/ac3200.c

index 91791ba3776930bb8354ad691680ac00e0882b85..8a0af5453e21c93ed6eb19e7d8d925b65cc16cee 100644 (file)
@@ -275,7 +275,7 @@ static int __init ac_probe1(int ioaddr, struct net_device *dev)
        return 0;
 out2:
        if (ei_status.reg0)
-               iounmap((void *)dev->mem_start);
+               iounmap(ei_status.mem);
 out1:
        free_irq(dev->irq, dev);
 out: