瀏覽代碼

ARM: OMAP2+: hwmod: print error if wait_target_ready() failed

Fixed pr_debug to pr_err when hwmod returns an error when enabling
a module.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Lokesh Vutla 10 年之前
父節點
當前提交
812ce9d282
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      arch/arm/mach-omap2/omap_hwmod.c

+ 2 - 2
arch/arm/mach-omap2/omap_hwmod.c

@@ -2155,8 +2155,8 @@ static int _enable(struct omap_hwmod *oh)
 		if (soc_ops.disable_module)
 		if (soc_ops.disable_module)
 			soc_ops.disable_module(oh);
 			soc_ops.disable_module(oh);
 		_disable_clocks(oh);
 		_disable_clocks(oh);
-		pr_debug("omap_hwmod: %s: _wait_target_ready: %d\n",
-			 oh->name, r);
+		pr_err("omap_hwmod: %s: _wait_target_ready failed: %d\n",
+		       oh->name, r);
 
 
 		if (oh->clkdm)
 		if (oh->clkdm)
 			clkdm_hwmod_disable(oh->clkdm, oh);
 			clkdm_hwmod_disable(oh->clkdm, oh);