Commit afc12d30 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

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

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent a9f627c9
...@@ -62,7 +62,7 @@ static int physmap_flash_remove(struct platform_device *dev) ...@@ -62,7 +62,7 @@ static int physmap_flash_remove(struct platform_device *dev)
} }
if (info->map.virt != NULL) if (info->map.virt != NULL)
iounmap((void *)info->map.virt); iounmap(info->map.virt);
if (info->res != NULL) { if (info->res != NULL) {
release_resource(info->res); release_resource(info->res);
......
...@@ -249,7 +249,7 @@ static int __init cs553x_init_one(int cs, int mmio, unsigned long adr) ...@@ -249,7 +249,7 @@ static int __init cs553x_init_one(int cs, int mmio, unsigned long adr)
goto out; goto out;
out_ior: out_ior:
iounmap((void *)this->IO_ADDR_R); iounmap(this->IO_ADDR_R);
out_mtd: out_mtd:
kfree(new_mtd); kfree(new_mtd);
out: out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment