|
@@ -3213,15 +3213,20 @@ int __init omap3xxx_hwmod_init(void)
|
|
|
|
|
|
if (h_sham && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "sham")) {
|
|
|
r = omap_hwmod_register_links(h_sham);
|
|
|
- if (r < 0)
|
|
|
+ if (r < 0) {
|
|
|
+ of_node_put(bus);
|
|
|
return r;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (h_aes && omap3xxx_hwmod_is_hs_ip_block_usable(bus, "aes")) {
|
|
|
r = omap_hwmod_register_links(h_aes);
|
|
|
- if (r < 0)
|
|
|
+ if (r < 0) {
|
|
|
+ of_node_put(bus);
|
|
|
return r;
|
|
|
+ }
|
|
|
}
|
|
|
+ of_node_put(bus);
|
|
|
|
|
|
/*
|
|
|
* Register hwmod links specific to certain ES levels of a
|