[PATCH 2/4] Documentation: fix ioremap return type

From: Randy Dunlap
Date: Fri Jan 01 2010 - 23:37:07 EST


From: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Subject: Documentation: fix ioremap return type

ioremap() returns a void __iomem * not a char *. Update the documentation
file to reflect this.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
Documentation/IO-mapping.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.33-rc2-git4.orig/Documentation/IO-mapping.txt
+++ linux-2.6.33-rc2-git4/Documentation/IO-mapping.txt
@@ -157,7 +157,7 @@ For such memory, you can do things like
* access only the 640k-1MB area, so anything else
* has to be remapped.
*/
- char * baseptr = ioremap(0xFC000000, 1024*1024);
+ void __iomem *baseptr = ioremap(0xFC000000, 1024*1024);

/* write a 'A' to the offset 10 of the area */
writeb('A',baseptr+10);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/