return 0;
c = omap_clk_get_by_name(oh->main_clk);
- WARN(!c, "omap_hwmod: %s: cannot clk_get main_clk %s\n",
- oh->name, oh->main_clk);
if (!c)
+ pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n",
+ oh->name, oh->main_clk);
ret = -EINVAL;
oh->_clk = c;
continue;
c = omap_clk_get_by_name(os->clk);
- WARN(!c, "omap_hwmod: %s: cannot clk_get interface_clk %s\n",
- oh->name, os->clk);
if (!c)
+ pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n",
+ oh->name, os->clk);
ret = -EINVAL;
os->_clk = c;
}
for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) {
c = omap_clk_get_by_name(oc->clk);
- WARN(!c, "omap_hwmod: %s: cannot clk_get opt_clk %s\n",
- oh->name, oc->clk);
if (!c)
+ pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n",
+ oh->name, oc->clk);
ret = -EINVAL;
oc->_clk = c;
}