aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod.c
diff options
context:
space:
mode:
authorRajendra Nayak <rnayak@ti.com>2011-02-16 12:11:24 +0000
committerPaul Walmsley <paul@pwsan.com>2011-03-10 03:23:55 -0700
commit09c35f2fee8a8633dde7b8b588b1cb496eb220a1 (patch)
tree2c0f7e1ef401b328e87a89bbe67f37369e630940 /arch/arm/mach-omap2/omap_hwmod.c
parentd73d65fab1c29c3c0f9736aed9cb55ea53843b00 (diff)
downloadkernel_samsung_smdk4412-09c35f2fee8a8633dde7b8b588b1cb496eb220a1.zip
kernel_samsung_smdk4412-09c35f2fee8a8633dde7b8b588b1cb496eb220a1.tar.gz
kernel_samsung_smdk4412-09c35f2fee8a8633dde7b8b588b1cb496eb220a1.tar.bz2
OMAP2+: hwmod: Fix what _init_clock returns
_init_clock always returns 0 and does not propogate the error (in case of failure) back to the caller, causing _init_clocks to fail silently. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Acked-by: BenoƮt Cousson <b-cousson@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index b18c36b..2146d9a 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -926,7 +926,7 @@ static int _init_clocks(struct omap_hwmod *oh, void *data)
if (!ret)
oh->_state = _HWMOD_STATE_CLKS_INITED;
- return 0;
+ return ret;
}
/**