diff options
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 5 |
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 | /** |