Skip to content

Commit 143724f

Browse files
bigguinesstorvalds
authored andcommitted
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4b6764f commit 143724f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/IO-mapping.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ For such memory, you can do things like
157157
* access only the 640k-1MB area, so anything else
158158
* has to be remapped.
159159
*/
160-
char * baseptr = ioremap(0xFC000000, 1024*1024);
160+
void __iomem *baseptr = ioremap(0xFC000000, 1024*1024);
161161

162162
/* write a 'A' to the offset 10 of the area */
163163
writeb('A',baseptr+10);

0 commit comments

Comments
 (0)