Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

H Hartley Sweeten and committed by
Linus Torvalds
143724fd 4b6764fa

+1 -1
+1 -1
Documentation/IO-mapping.txt
··· 157 157 * access only the 640k-1MB area, so anything else 158 158 * has to be remapped. 159 159 */ 160 - char * baseptr = ioremap(0xFC000000, 1024*1024); 160 + void __iomem *baseptr = ioremap(0xFC000000, 1024*1024); 161 161 162 162 /* write a 'A' to the offset 10 of the area */ 163 163 writeb('A',baseptr+10);