aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod.c
diff options
context:
space:
mode:
authorBenoit Cousson <b-cousson@ti.com>2010-05-20 14:31:10 -0400
committerPaul Walmsley <paul@pwsan.com>2010-05-20 14:31:10 -0400
commitf5c1f84bcc9c5b7a664886d0a5e7143d0bc3251f (patch)
treebdfe93788b701f32570bd967c971eb2ce04e1a65 /arch/arm/mach-omap2/omap_hwmod.c
parent20383d82160d918047bb10a4f6e170f4bac195a7 (diff)
OMAP: hwmod: Do not exit the iteration if one clock init failed
During the _init_clocks phase, the iteration is stopped but the status is still change from _HWMOD_STATE_REGISTERED to _HWMOD_STATE_CLKS_INITED. Since the _setup phase will be done nevertheless, it might be better to keep initializing the others clocks nodes and just keep the warning. It is much easier to debug when a important number of clocks name are wrong during the early debug phase of a new platform. Signed-off-by: Benoit 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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index 5d3a3ea37422..b624ad648212 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -783,9 +783,10 @@ static int _init_clocks(struct omap_hwmod *oh)
783 ret |= _init_interface_clks(oh); 783 ret |= _init_interface_clks(oh);
784 ret |= _init_opt_clks(oh); 784 ret |= _init_opt_clks(oh);
785 785
786 oh->_state = _HWMOD_STATE_CLKS_INITED; 786 if (!ret)
787 oh->_state = _HWMOD_STATE_CLKS_INITED;
787 788
788 return ret; 789 return 0;
789} 790}
790 791
791/** 792/**