From: Tony Lindgren Date: Fri, 14 Mar 2008 09:34:51 +0000 (+0200) Subject: ARM: OMAP2: Fix few more macros for reg evaluation X-Git-Tag: v2.6.25-omap1~122 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4ed1c837a3ba1b6d1087d15ef8f001ae175fd24f;p=linux-2.6-omap-h63xx.git ARM: OMAP2: Fix few more macros for reg evaluation Fix few more macros for reg evaluation Signed-off-by: Tony Lindgren --- diff --git a/include/asm-arm/arch-omap/control.h b/include/asm-arm/arch-omap/control.h index 4544b2e3c2a..9944bb5d533 100644 --- a/include/asm-arm/arch-omap/control.h +++ b/include/asm-arm/arch-omap/control.h @@ -18,9 +18,12 @@ #include -#define OMAP242X_CTRL_REGADDR(reg) (void __iomem *)IO_ADDRESS(OMAP242X_CTRL_BASE + reg) -#define OMAP243X_CTRL_REGADDR(reg) (void __iomem *)IO_ADDRESS(OMAP243X_CTRL_BASE + reg) -#define OMAP343X_CTRL_REGADDR(reg) (void __iomem *)IO_ADDRESS(OMAP343X_CTRL_BASE + reg) +#define OMAP242X_CTRL_REGADDR(reg) \ + (void __iomem *)IO_ADDRESS(OMAP242X_CTRL_BASE + (reg)) +#define OMAP243X_CTRL_REGADDR(reg) \ + (void __iomem *)IO_ADDRESS(OMAP243X_CTRL_BASE + (reg)) +#define OMAP343X_CTRL_REGADDR(reg) \ + (void __iomem *)IO_ADDRESS(OMAP343X_CTRL_BASE + (reg)) /* * As elsewhere, the "OMAP2_" prefix indicates that the macro is valid for