[PATCH] mtd: remove several bogus casts to void * in iounmap() argument
Al Viro [Tue, 10 Oct 2006 21:46:37 +0000 (22:46 +0100)]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

drivers/mtd/maps/physmap.c
drivers/mtd/nand/cs553x_nand.c

index bc7cc71..d171776 100644 (file)
@@ -62,7 +62,7 @@ static int physmap_flash_remove(struct platform_device *dev)
        }
 
        if (info->map.virt != NULL)
-               iounmap((void *)info->map.virt);
+               iounmap(info->map.virt);
 
        if (info->res != NULL) {
                release_resource(info->res);
index e0a1d38..94924d5 100644 (file)
@@ -249,7 +249,7 @@ static int __init cs553x_init_one(int cs, int mmio, unsigned long adr)
        goto out;
 
 out_ior:
-       iounmap((void *)this->IO_ADDR_R);
+       iounmap(this->IO_ADDR_R);
 out_mtd:
        kfree(new_mtd);
 out: