From: xxx Date: Thu, 26 Jun 2014 10:13:16 +0000 (+0800) Subject: ddr_rk32.c:fixed warning X-Git-Tag: firefly_0821_release~5035 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1c10453a008f9bca7668d82393f837aa9b57ba12;p=firefly-linux-kernel-4.4.55.git ddr_rk32.c:fixed warning --- diff --git a/arch/arm/mach-rockchip/ddr_rk32.c b/arch/arm/mach-rockchip/ddr_rk32.c index c10966f7de1c..3818f5db67f8 100755 --- a/arch/arm/mach-rockchip/ddr_rk32.c +++ b/arch/arm/mach-rockchip/ddr_rk32.c @@ -3656,8 +3656,10 @@ static noinline uint32 ddr_change_freq_sram(void *arg) uint32 gpllvaluel; freq_t *p_freq_t=(freq_t *)arg; uint32 nMHz=p_freq_t->nMHz; + +#if defined (DDR_CHANGE_FREQ_IN_LCDC_VSYNC) struct ddr_freq_t *p_ddr_freq_t=p_freq_t->p_ddr_freq_t; - +#endif #if defined(CONFIG_ARCH_RK3066B) if(dqstr_flag==true) @@ -3990,10 +3992,13 @@ static int __ddr_change_freq(uint32_t nMHz, struct ddr_freq_t ddr_freq_t) static int _ddr_change_freq(uint32 nMHz) { struct ddr_freq_t ddr_freq_t; + #if defined (DDR_CHANGE_FREQ_IN_LCDC_VSYNC) unsigned long remain_t, vblank_t, pass_t; static unsigned long reserve_t = 800;//us unsigned long long tmp; - int ret, test_count=0; + int test_count=0; + #endif + int ret; memset(&ddr_freq_t, 0x00, sizeof(ddr_freq_t));