mtd: au1550nd.c: remove unnecessary casts
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Thu Dec 31 15:59:01 EST 2009
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=440d4f9fb62dad0d5ed1635d099cedaa7a25d96d
Commit: 440d4f9fb62dad0d5ed1635d099cedaa7a25d96d
Parent: 34970a7db5c73f4c83b72ce989d297a95efb3a6d
Author: H Hartley Sweeten <hartleys at visionengravers.com>
AuthorDate: Mon Dec 14 16:08:37 2009 -0500
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Thu Dec 31 19:51:33 2009 +0000
mtd: au1550nd.c: remove unnecessary casts
Remove unnecessary casts for p_nand, it is already a void __iomem *.
Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/nand/au1550nd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd/nand/au1550nd.c
index de190b8..58c55db 100644
--- a/drivers/mtd/nand/au1550nd.c
+++ b/drivers/mtd/nand/au1550nd.c
@@ -538,7 +538,7 @@ static int __init au1xxx_nand_init(void)
}
nand_phys = (mem_staddr << 4) & 0xFFFC0000;
- p_nand = (void __iomem *)ioremap(nand_phys, 0x1000);
+ p_nand = ioremap(nand_phys, 0x1000);
/* make controller and MTD agree */
if (NAND_CS == 0)
@@ -583,7 +583,7 @@ static int __init au1xxx_nand_init(void)
return 0;
outio:
- iounmap((void *)p_nand);
+ iounmap(p_nand);
outmem:
kfree(au1550_mtd);
@@ -604,7 +604,7 @@ static void __exit au1550_cleanup(void)
kfree(au1550_mtd);
/* Unmap */
- iounmap((void *)p_nand);
+ iounmap(p_nand);
}
module_exit(au1550_cleanup);
More information about the linux-mtd-cvs
mailing list