Skip to content

Commit

Permalink
mtd: au1550nd.c: remove unnecessary casts
Browse files Browse the repository at this point in the history
Remove unnecessary casts for p_nand, it is already a void __iomem *.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
H Hartley Sweeten authored and David Woodhouse committed Dec 31, 2009
1 parent 34970a7 commit 440d4f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mtd/nand/au1550nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 440d4f9

Please sign in to comment.