From 61d3e74f1f61a92e45a31014ad93372856d3c9d9 Mon Sep 17 00:00:00 2001 From: Paul Walmsley Date: Wed, 10 Sep 2008 10:48:10 -0600 Subject: [PATCH] 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: Paul Walmsley Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/clock.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 88c8ef43e8e..eee5511aae2 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -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); } } -- 2.41.1