From 7b5040ea21700882d5fd6804ad81fabd0a40064f Mon Sep 17 00:00:00 2001 From: xxx Date: Tue, 17 Jun 2014 09:55:24 +0800 Subject: [PATCH] rkpm remove warning --- arch/arm/mach-rockchip/pm-pie.c | 8 ++--- arch/arm/mach-rockchip/pm-rk3188.c | 4 +-- arch/arm/mach-rockchip/pm-rk3288.c | 55 +++++++++++++++--------------- arch/arm/mach-rockchip/rk3288.c | 5 +-- 4 files changed, 36 insertions(+), 36 deletions(-) mode change 100644 => 100755 arch/arm/mach-rockchip/rk3288.c diff --git a/arch/arm/mach-rockchip/pm-pie.c b/arch/arm/mach-rockchip/pm-pie.c index 9198519d22e9..c24c8f3ef990 100755 --- a/arch/arm/mach-rockchip/pm-pie.c +++ b/arch/arm/mach-rockchip/pm-pie.c @@ -6,6 +6,8 @@ /*************************dump reg********************************************/ +#if 0 // not used + static void __sramfunc rkpm_sram_regs_dump(u32 base_addr,u32 start_offset,u32 end_offset) { u32 i; @@ -28,7 +30,7 @@ static void __sramfunc rkpm_sram_regs_dump(u32 base_addr,u32 start_offset,u32 en rkpm_sram_printch('\n'); } - +#endif struct rkpm_sram_ops DEFINE_PIE_DATA(pm_sram_ops); //for sram @@ -129,13 +131,11 @@ void PIE_FUNC(rkpm_sram_suspend_arg)(void *arg) rkpm_sram_suspend(rkpm_sram_ctrbits); } EXPORT_PIE_SYMBOL(FUNC(rkpm_sram_suspend_arg)); - - static void rkpm_pie_init(void) { if(rockchip_pie_chunk) { - rkpm_set_pie_info(kern_to_pie(rockchip_pie_chunk, &DATA(pm_sram_ops)) + rkpm_set_pie_info(kern_to_pie(rockchip_pie_chunk, &DATA(pm_sram_ops)) ,fn_to_pie(rockchip_pie_chunk, &FUNC(rkpm_sram_suspend_arg))); } } diff --git a/arch/arm/mach-rockchip/pm-rk3188.c b/arch/arm/mach-rockchip/pm-rk3188.c index cf41244442f6..c59b509086ff 100755 --- a/arch/arm/mach-rockchip/pm-rk3188.c +++ b/arch/arm/mach-rockchip/pm-rk3188.c @@ -282,6 +282,7 @@ static void gtclks_resume(void) #define power_off_pll(id) \ cru_writel(RK3188_PLL_PWR_DN_W_MSK | RK3188_PLL_PWR_DN, RK3188_PLL_CONS((id), 3)) +#if 0 static void pm_pll_wait_lock(u32 pll_idx) { @@ -313,7 +314,7 @@ static void power_on_pll(u32 pll_id) cru_writel(RK3188_PLL_PWR_DN_W_MSK | RK3188_PLL_PWR_ON, RK3188_PLL_CONS((pll_id), 3)); pm_pll_wait_lock((pll_id)); } - +#endif static u32 clk_sel0, clk_sel1, clk_sel10; static u32 cpll_con3; static u32 cru_mode_con; @@ -565,7 +566,6 @@ static u32 gpios_data[2]; static void __init rk3188_suspend_init(void) { - struct device_node *parent; u32 pm_ctrbits; diff --git a/arch/arm/mach-rockchip/pm-rk3288.c b/arch/arm/mach-rockchip/pm-rk3288.c index 5c7fa5989901..b6db3936a322 100755 --- a/arch/arm/mach-rockchip/pm-rk3288.c +++ b/arch/arm/mach-rockchip/pm-rk3288.c @@ -224,6 +224,7 @@ static void sram_data_resume(char *boot_save, char *int_save,u32 flag) #define PM_IRQN_START 32 #define PM_IRQN_END 107//107 +#if 0 //funciton is ok ,but not used static void pm_gic_enable(u32 irqs) { @@ -257,7 +258,7 @@ static void rkpm_gic_disable(u32 irqs) writel_relaxed(readl_relaxed(reg_off)&~(1<