Skip to contentSkip to conversation

Documentation: fix ioremap return type

PATCH Applied Randy Dunlap 1 participant 1 message Jan 2, 2010 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 Documentation: fix ioremap return type

From: H Hartley Sweeten <[email protected]>
Subject: Documentation: fix ioremap return type

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

---
 Documentation/IO-mapping.txt |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/IO-mapping.txt +1 -1
@@ -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);