ARM: tegra: clock: Fix warning
authorColin Cross <ccross@android.com>
Mon, 25 Oct 2010 23:23:09 +0000 (16:23 -0700)
committerColin Cross <ccross@android.com>
Tue, 26 Oct 2010 01:46:20 +0000 (18:46 -0700)
Change-Id: I2c175f65b7e7db234f7317e7c51aeea65d33d555

arch/arm/mach-tegra/tegra2_clocks.c

index c270457926a96b36697c97d3cd8c737b8288d4de..4a9e3e0b7f2e90d865d51be0b9c6a004e4a09a7b 100644 (file)
@@ -871,7 +871,7 @@ static int tegra2_periph_clk_enable(struct clk *c)
 
        tegra_periph_clk_enable_refcount[c->u.periph.clk_num]++;
        if (tegra_periph_clk_enable_refcount[c->u.periph.clk_num] > 1)
-               return;
+               return 0;
 
        clk_writel(PERIPH_CLK_TO_ENB_BIT(c),
                CLK_OUT_ENB_SET + PERIPH_CLK_TO_ENB_SET_REG(c));