From: Kevin Hilman Date: Wed, 21 Mar 2007 00:07:50 +0000 (-0700) Subject: ARM: OMAP: Fix PRCM base register usage for 243x X-Git-Tag: v2.6.22-omap1~180^2~23 X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc06228d7e57fafb4abc5d6235ba20649b88c2cd;hp=8c5cea48108a32dd8ec01c3789135e3be4bbfc1f;p=linux-2.6-omap-h63xx.git ARM: OMAP: Fix PRCM base register usage for 243x The PRCM base register is different on 242x and 243x. Use the #ifdef'd #define from omap24xx.h instead of the locally defined one. Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index fde7334b106..8c39a464e25 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -45,7 +45,6 @@ #include #include -#define PRCM_BASE 0x48008000 #define PRCM_REVISION 0x000 #define PRCM_SYSCONFIG 0x010 #define PRCM_IRQSTATUS_MPU 0x018 @@ -144,7 +143,7 @@ static void (*omap2_sram_idle)(void); static void (*omap2_sram_suspend)(int dllctrl); static void (*saved_idle)(void); -static u32 prcm_base = IO_ADDRESS(PRCM_BASE); +static u32 prcm_base = IO_ADDRESS(OMAP24XX_PRCM_BASE); static inline void prcm_write_reg(int idx, u32 val) {