Browse Source

[PATCH] lne390 bogus casts

	We already have the iomem pointer we need...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
viro@ZenIV.linux.org.uk 20 years ago
parent
commit
387d890db8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/net/lne390.c

+ 1 - 1
drivers/net/lne390.c

@@ -298,7 +298,7 @@ static int __init lne390_probe1(struct net_device *dev, int ioaddr)
 	return 0;
 	return 0;
 unmap:
 unmap:
 	if (ei_status.reg0)
 	if (ei_status.reg0)
-		iounmap((void *)dev->mem_start);
+		iounmap(ei_status.mem);
 cleanup:
 cleanup:
 	free_irq(dev->irq, dev);
 	free_irq(dev->irq, dev);
 	return ret;
 	return ret;