diff options
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index 0fa08c1e4701..1435fee39a89 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -3213,15 +3213,20 @@ int __init omap3xxx_hwmod_init(void) | |||
3213 | 3213 | ||
3214 | if (h_sham && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "sham")) { | 3214 | if (h_sham && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "sham")) { |
3215 | r = omap_hwmod_register_links(h_sham); | 3215 | r = omap_hwmod_register_links(h_sham); |
3216 | if (r < 0) | 3216 | if (r < 0) { |
3217 | of_node_put(bus); | ||
3217 | return r; | 3218 | return r; |
3219 | } | ||
3218 | } | 3220 | } |
3219 | 3221 | ||
3220 | if (h_aes && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "aes")) { | 3222 | if (h_aes && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "aes")) { |
3221 | r = omap_hwmod_register_links(h_aes); | 3223 | r = omap_hwmod_register_links(h_aes); |
3222 | if (r < 0) | 3224 | if (r < 0) { |
3225 | of_node_put(bus); | ||
3223 | return r; | 3226 | return r; |
3227 | } | ||
3224 | } | 3228 | } |
3229 | of_node_put(bus); | ||
3225 | 3230 | ||
3226 | /* | 3231 | /* |
3227 | * Register hwmod links specific to certain ES levels of a | 3232 | * Register hwmod links specific to certain ES levels of a |