Commit 61d3e74f authored by Paul Walmsley's avatar Paul Walmsley Committed by Tony Lindgren

OMAP2/3 clock: warn if clock is missing clockdomain

At this point, all OMAP2/3 clocks should be associated with a clockdomain.
Warn in clk_register() if any are missing a clockdomain
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent acea9d4a
......@@ -78,8 +78,10 @@ void omap2_init_clk_clkdm(struct clk *clk)
{
struct clockdomain *clkdm;
if (!clk->clkdm.name)
if (!clk->clkdm.name) {
pr_err("clock: %s: missing clockdomain", clk->name);
return;
}
clkdm = clkdm_lookup(clk->clkdm.name);
if (clkdm) {
......@@ -87,8 +89,8 @@ void omap2_init_clk_clkdm(struct clk *clk)
clk->name, clk->clkdm.name);
clk->clkdm.ptr = clkdm;
} else {
pr_debug("clock: could not associate clk %s to "
"clkdm %s\n", clk->name, clk->clkdm.name);
pr_err("clock: %s: could not associate to clkdm %s\n",
clk->name, clk->clkdm.name);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment