|
@@ -538,7 +538,7 @@ static int __init au1xxx_nand_init(void)
|
|
}
|
|
}
|
|
nand_phys = (mem_staddr << 4) & 0xFFFC0000;
|
|
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 */
|
|
/* make controller and MTD agree */
|
|
if (NAND_CS == 0)
|
|
if (NAND_CS == 0)
|
|
@@ -583,7 +583,7 @@ static int __init au1xxx_nand_init(void)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
outio:
|
|
outio:
|
|
- iounmap((void *)p_nand);
|
|
|
|
|
|
+ iounmap(p_nand);
|
|
|
|
|
|
outmem:
|
|
outmem:
|
|
kfree(au1550_mtd);
|
|
kfree(au1550_mtd);
|
|
@@ -604,7 +604,7 @@ static void __exit au1550_cleanup(void)
|
|
kfree(au1550_mtd);
|
|
kfree(au1550_mtd);
|
|
|
|
|
|
/* Unmap */
|
|
/* Unmap */
|
|
- iounmap((void *)p_nand);
|
|
|
|
|
|
+ iounmap(p_nand);
|
|
}
|
|
}
|
|
|
|
|
|
module_exit(au1550_cleanup);
|
|
module_exit(au1550_cleanup);
|