From 29a9d54bfa4a5e5f882590eebd1f194b73bf0cf8 Mon Sep 17 00:00:00 2001 From: chenxing Date: Sat, 18 May 2013 13:17:38 +0800 Subject: [PATCH] rk3188: fix CORE_CLK_DIV define error --- arch/arm/mach-rk3188/include/mach/cru-rk3188.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rk3188/include/mach/cru-rk3188.h b/arch/arm/mach-rk3188/include/mach/cru-rk3188.h index 7f0fd8aee14b..b7077e5572a6 100755 --- a/arch/arm/mach-rk3188/include/mach/cru-rk3188.h +++ b/arch/arm/mach-rk3188/include/mach/cru-rk3188.h @@ -121,7 +121,7 @@ enum rk_plls_id { #define CORE_CLK_DIV_W_MSK (0x1F << 25) #define CORE_CLK_DIV_MSK (0x1F << 9) -#define CORE_CLK_DIV(i) (((i) - 1) & 0x1F) +#define CORE_CLK_DIV(i) ((((i) - 1) & 0x1F) << 9) #define CPU_SEL_PLL_MSK (1 << 5) #define CPU_SEL_PLL_W_MSK (1 << 21) -- 2.34.1