]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00178915: imx6 clock fix build warnings
authorAdrian Alonso <aalonso@freescale.com>
Tue, 3 Apr 2012 21:01:23 +0000 (16:01 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:22 +0000 (08:34 +0200)
* 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 <aalonso@freescale.com>
arch/arm/mach-mx6/clock.c

index c84d43a17c5c6ef21592539f1007ab7b4e96b769..c5074d32c620a9b4b4cc4b97981c353eaa930c85 100644 (file)
@@ -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;