Browse Source

[PATCH] mtd: remove several bogus casts to void * in iounmap() argument

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Al Viro 18 years ago
parent
commit
afc12d30a7
2 changed files with 2 additions and 2 deletions
  1. 1 1
      drivers/mtd/maps/physmap.c
  2. 1 1
      drivers/mtd/nand/cs553x_nand.c

+ 1 - 1
drivers/mtd/maps/physmap.c

@@ -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);

+ 1 - 1
drivers/mtd/nand/cs553x_nand.c

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