[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20100101203541.6ce233bc.randy.dunlap@oracle.com>
Date: Fri, 1 Jan 2010 20:35:41 -0800
From: Randy Dunlap <randy.dunlap@...cle.com>
To: lkml <linux-kernel@...r.kernel.org>,
torvalds <torvalds@...ux-foundation.org>
Cc: H Hartley Sweeten <hsweeten@...ionengravers.com>
Subject: [PATCH 2/4] Documentation: fix ioremap return type
From: H Hartley Sweeten <hsweeten@...ionengravers.com>
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@...ionengravers.com>
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists