]> Pileus Git - ~andy/linux/blobdiff - arch/arm/mach-omap2/omap_hwmod.c
ARM: OMAP2+: hwmod: Fix usage of invalid iclk / oclk when clock node is not present
[~andy/linux] / arch / arm / mach-omap2 / omap_hwmod.c
index cacc0c7e8634a44a692425df26c91399814cc768..461d59044f1b051fe5897cc1fa42f42b93b875a0 100644 (file)
@@ -815,6 +815,7 @@ static int _init_interface_clks(struct omap_hwmod *oh)
                        pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n",
                                   oh->name, os->clk);
                        ret = -EINVAL;
+                       continue;
                }
                os->_clk = c;
                /*
@@ -851,6 +852,7 @@ static int _init_opt_clks(struct omap_hwmod *oh)
                        pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n",
                                   oh->name, oc->clk);
                        ret = -EINVAL;
+                       continue;
                }
                oc->_clk = c;
                /*