From: Adrian Alonso Date: Tue, 3 Apr 2012 21:01:23 +0000 (-0500) Subject: ENGR00178915: imx6 clock fix build warnings X-Git-Tag: v3.0.35-fsl_4.1.0~1394 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=42aa555e06278af137db032b7fe58a70c2deef9a;p=karo-tx-linux.git ENGR00178915: imx6 clock fix build warnings * Fix build warnings * clock.c: In function '_clk_pll1_enable': warning: no return statement in function returning non-void * clock.c: In function 'mx6_clocks_init': warning: unused variable 'reg' Signed-off-by: Adrian Alonso --- diff --git a/arch/arm/mach-mx6/clock.c b/arch/arm/mach-mx6/clock.c index c84d43a17c5c..c5074d32c620 100644 --- a/arch/arm/mach-mx6/clock.c +++ b/arch/arm/mach-mx6/clock.c @@ -531,6 +531,7 @@ static int _clk_pll1_enable(struct clk *clk) { _clk_pll_enable(clk); pll1_enabled = true; + return 0; } static struct clk pll1_sys_main_clk = { @@ -5147,7 +5148,6 @@ int __init mx6_clocks_init(unsigned long ckil, unsigned long osc, unsigned long ckih1, unsigned long ckih2) { __iomem void *base; - unsigned int reg; int i; external_low_reference = ckil;