]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] mtd: remove several bogus casts to void * in iounmap() argument
authorAl Viro <viro@ftp.linux.org.uk>
Tue, 10 Oct 2006 21:46:37 +0000 (22:46 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 10 Oct 2006 22:37:22 +0000 (15:37 -0700)
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 bc7cc71788bc27be9ba18a778b3ee35426f76427..d1717763f719778512e1229a42336773d00305d1 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 e0a1d386e58198040250988b3f9b54779128ff36..94924d52a9b96d10121ac34f26d3447702eb0ae7 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: