Re: [PATCH] IO-mapping.txt: ioremap() returns a void __iomem *

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 10 Dec 2009 19:26:02 -0500 H Hartley Sweeten wrote:

> ioremap() returns a void __iomem * not a char *.  Update the documentation
> file to reflect this.
> 
> Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>

applied, thanks.

> ---
> 
> diff --git a/Documentation/IO-mapping.txt b/Documentation/IO-mapping.txt
> index 78a4406..1b5aa10 100644
> --- a/Documentation/IO-mapping.txt
> +++ b/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); 
> --


---
~Randy
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux