From 9d0cbf9442c08a413bafbddb3e0f2cc5a3522bf8 Mon Sep 17 00:00:00 2001 From: Hiroshi DOYU Date: Mon, 14 Apr 2008 15:40:31 +0300 Subject: [PATCH] ARM: OMAP: Fix build error for "pm.c" with CONFIG_PM_DEBUG CC arch/arm/plat-omap/clock.o arch/arm/mach-omap2/pm.c: In function 'pm_init_serial_console': arch/arm/mach-omap2/pm.c:188: error: expected ';' before 'break' arch/arm/mach-omap2/pm.c:191: error: expected ';' before 'break' arch/arm/mach-omap2/pm.c:193: error: 'PM_WKEN2' undeclared (first use in this function) arch/arm/mach-omap2/pm.c:193: error: (Each undeclared identifier is reported only once arch/arm/mach-omap2/pm.c:193: error: for each function it appears in.) arch/arm/mach-omap2/pm.c:194: error: expected ';' before 'break' make[1]: *** [arch/arm/mach-omap2/pm.o] Error 1 make: *** [arch/arm/mach-omap2] Error 2 Signed-off-by: Hiroshi DOYU Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/pm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 0dc5952ab16..a7faba3d918 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -4,7 +4,7 @@ * OMAP2 Power Management Routines * * Copyright (C) 2005 Texas Instruments, Inc. - * Copyright (C) 2006 Nokia Corporation + * Copyright (C) 2006-2008 Nokia Corporation * * Written by: * Richard Woodruff @@ -184,13 +184,13 @@ static void pm_init_serial_console(void) } switch (serial_console_uart) { case 1: - prm_set_mod_reg_bits(OMAP24XX_ST_UART1, CORE_MOD, PM_WKEN1) + prm_set_mod_reg_bits(OMAP24XX_ST_UART1, CORE_MOD, PM_WKEN1); break; case 2: - prm_set_mod_reg_bits(OMAP24XX_ST_UART2, CORE_MOD, PM_WKEN1) + prm_set_mod_reg_bits(OMAP24XX_ST_UART2, CORE_MOD, PM_WKEN1); break; case 3: - prm_set_mod_reg_bits(OMAP24XX_ST_UART3, CORE_MOD, PM_WKEN2) + prm_set_mod_reg_bits(OMAP24XX_ST_UART3, CORE_MOD, OMAP24XX_PM_WKEN2); break; } } -- 2.41.1