* [PATCH 2/4] Documentation: fix ioremap return type
@ 2010-01-02 4:35 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2010-01-02 4:35 UTC (permalink / raw)
To: lkml, torvalds; +Cc: H Hartley Sweeten
From: H Hartley Sweeten <hsweeten@visionengravers.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@visionengravers.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-02 4:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-02 4:35 [PATCH 2/4] Documentation: fix ioremap return type Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®