Commit 6f9c92f1 authored by Dirk Behme's avatar Dirk Behme Committed by Tony Lindgren

ARM: OMAP: Fix warning in clock.c

Fix warning:

arch/arm/mach-omap1/clock.c: In function
'omap1_clk_enable_generic':
arch/arm/mach-omap1/clock.c:499: warning: 'return' with no
value, in function returning non-void

Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent ef557d76
...@@ -432,7 +432,6 @@ static int omap1_clk_enable(struct clk *clk) ...@@ -432,7 +432,6 @@ static int omap1_clk_enable(struct clk *clk)
} }
if (clk->flags & CLOCK_NO_IDLE_PARENT) if (clk->flags & CLOCK_NO_IDLE_PARENT)
if (!cpu_is_omap24xx())
omap1_clk_deny_idle(clk->parent); omap1_clk_deny_idle(clk->parent);
} }
...@@ -454,7 +453,6 @@ static void omap1_clk_disable(struct clk *clk) ...@@ -454,7 +453,6 @@ static void omap1_clk_disable(struct clk *clk)
if (likely(clk->parent)) { if (likely(clk->parent)) {
omap1_clk_disable(clk->parent); omap1_clk_disable(clk->parent);
if (clk->flags & CLOCK_NO_IDLE_PARENT) if (clk->flags & CLOCK_NO_IDLE_PARENT)
if (!cpu_is_omap24xx())
omap1_clk_allow_idle(clk->parent); omap1_clk_allow_idle(clk->parent);
} }
} }
...@@ -471,7 +469,7 @@ static int omap1_clk_enable_generic(struct clk *clk) ...@@ -471,7 +469,7 @@ static int omap1_clk_enable_generic(struct clk *clk)
if (unlikely(clk->enable_reg == 0)) { if (unlikely(clk->enable_reg == 0)) {
printk(KERN_ERR "clock.c: Enable for %s without enable code\n", printk(KERN_ERR "clock.c: Enable for %s without enable code\n",
clk->name); clk->name);
return 0; return -EINVAL;
} }
if (clk->flags & ENABLE_REG_32BIT) { if (clk->flags & ENABLE_REG_32BIT) {
...@@ -496,7 +494,7 @@ static int omap1_clk_enable_generic(struct clk *clk) ...@@ -496,7 +494,7 @@ static int omap1_clk_enable_generic(struct clk *clk)
} }
} }
return; return 0;
} }
static void omap1_clk_disable_generic(struct clk *clk) static void omap1_clk_disable_generic(struct clk *clk)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment