Re: [PATCH 2/2] ARM: at91: Use proper __iomem annotations

From: Olof Johansson
Date: Sun Mar 11 2012 - 22:02:15 EST


Hi,

On Sat, Mar 10, 2012 at 10:44 AM, Alan Ott <alan@xxxxxxxxxxx> wrote:
> diff --git a/arch/arm/mach-at91/include/mach/hardware.h b/arch/arm/mach-at91/include/mach/hardware.h
> index 2d0e4e9..91375e2 100644
> --- a/arch/arm/mach-at91/include/mach/hardware.h
> +++ b/arch/arm/mach-at91/include/mach/hardware.h
> @@ -75,8 +75,12 @@
>  * to 0xFEF78000 .. 0xFF000000.  (544Kb)
>  */
>  #define AT91_IO_PHYS_BASE      0xFFF78000
> +#ifdef __ASSEMBLER__
>  #define AT91_IO_VIRT_BASE      (0xFF000000 - AT91_IO_SIZE)
>  #else
> +#define AT91_IO_VIRT_BASE      (void __iomem *)(0xFF000000 - AT91_IO_SIZE)
> +#endif
> +#else

This can use the IOMEM()-style macro instead, Rob Herring just moved
those to a common header file (not yet in any tree though).


-Olof
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/