MTD DocBook: fix ioremap return type

ioremap() returns a void __iomem * not an unsigned long.  Update the
Documentation file to reflect this.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
H Hartley Sweeten 2010-01-01 20:35:54 -08:00 committed by David Woodhouse
parent e026255f7d
commit de58288d1d
1 changed files with 6 additions and 6 deletions

View File

@ -174,7 +174,7 @@
</para> </para>
<programlisting> <programlisting>
static struct mtd_info *board_mtd; static struct mtd_info *board_mtd;
static unsigned long baseaddr; static void __iomem *baseaddr;
</programlisting> </programlisting>
<para> <para>
Static example Static example
@ -182,7 +182,7 @@ static unsigned long baseaddr;
<programlisting> <programlisting>
static struct mtd_info board_mtd; static struct mtd_info board_mtd;
static struct nand_chip board_chip; static struct nand_chip board_chip;
static unsigned long baseaddr; static void __iomem *baseaddr;
</programlisting> </programlisting>
</sect1> </sect1>
<sect1 id="Partition_defines"> <sect1 id="Partition_defines">
@ -283,8 +283,8 @@ int __init board_init (void)
} }
/* map physical address */ /* map physical address */
baseaddr = (unsigned long)ioremap(CHIP_PHYSICAL_ADDRESS, 1024); baseaddr = ioremap(CHIP_PHYSICAL_ADDRESS, 1024);
if(!baseaddr){ if (!baseaddr) {
printk("Ioremap to access NAND chip failed\n"); printk("Ioremap to access NAND chip failed\n");
err = -EIO; err = -EIO;
goto out_mtd; goto out_mtd;
@ -316,7 +316,7 @@ int __init board_init (void)
goto out; goto out;
out_ior: out_ior:
iounmap((void *)baseaddr); iounmap(baseaddr);
out_mtd: out_mtd:
kfree (board_mtd); kfree (board_mtd);
out: out:
@ -341,7 +341,7 @@ static void __exit board_cleanup (void)
nand_release (board_mtd); nand_release (board_mtd);
/* unmap physical address */ /* unmap physical address */
iounmap((void *)baseaddr); iounmap(baseaddr);
/* Free the MTD device structure */ /* Free the MTD device structure */
kfree (board_mtd); kfree (board_mtd);