浏览代码

[PATCH] iomem annotations (ac3200.c)

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>
viro@ftp.linux.org.uk 20 年之前
父节点
当前提交
5ac90037c8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/net/ac3200.c

+ 1 - 1
drivers/net/ac3200.c

@@ -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: