From: Rajendra Nayak Date: Wed, 16 Feb 2011 12:11:24 +0000 (+0000) Subject: OMAP2+: hwmod: Fix what _init_clock returns X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=09c35f2fee8a8633dde7b8b588b1cb496eb220a1;p=mv-sheeva.git 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 Acked-by: BenoƮt Cousson Signed-off-by: Paul Walmsley --- diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index b18c36b1060..2146d9aa507 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; } /**