From 4ed1c837a3ba1b6d1087d15ef8f001ae175fd24f Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Fri, 14 Mar 2008 11:34:51 +0200 Subject: [PATCH] ARM: OMAP2: Fix few more macros for reg evaluation Fix few more macros for reg evaluation Signed-off-by: Tony Lindgren --- include/asm-arm/arch-omap/control.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.41.1