Skip to content

Commit

Permalink
[PATCH] mtd: remove several bogus casts to void * in iounmap() argument
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 10, 2006
1 parent a9f627c commit afc12d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/mtd/maps/physmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nand/cs553x_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit afc12d3

Please sign in to comment.