From: viro@ZenIV.linux.org.uk Date: Fri, 9 Sep 2005 16:22:14 +0000 (+0100) Subject: [PATCH] lne390 bogus casts X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=387d890db88b4eb7c1dd55a2a0c16d6f0dccc7ad;p=openwrt%2Fstaging%2Fblogic.git [PATCH] lne390 bogus casts We already have the iomem pointer we need... Signed-off-by: Al Viro Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/lne390.c b/drivers/net/lne390.c index 27f0d8ac4c40..309d254842cf 100644 --- a/drivers/net/lne390.c +++ b/drivers/net/lne390.c @@ -298,7 +298,7 @@ static int __init lne390_probe1(struct net_device *dev, int ioaddr) return 0; unmap: if (ei_status.reg0) - iounmap((void *)dev->mem_start); + iounmap(ei_status.mem); cleanup: free_irq(dev->irq, dev); return ret;