提交 0246c4fa 编写于 作者: S ShuoX Liu 提交者: Greg Kroah-Hartman

driver core: use initcall_debug to control shutdown info

syscore_shutdown uses initcall_debug to control the debug info output.
It’s a good programming. But device_shutdown doesn’t. The patch changes
device_shutdown to follow the style.
Signed-off-by: NYanmin Zhang <yanmin_zhang@linux.intel.com>
Signed-off-by: NShuoX Liu <shuox.liu@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 83ca897d
...@@ -1840,10 +1840,12 @@ void device_shutdown(void) ...@@ -1840,10 +1840,12 @@ void device_shutdown(void)
pm_runtime_barrier(dev); pm_runtime_barrier(dev);
if (dev->bus && dev->bus->shutdown) { if (dev->bus && dev->bus->shutdown) {
dev_dbg(dev, "shutdown\n"); if (initcall_debug)
dev_info(dev, "shutdown\n");
dev->bus->shutdown(dev); dev->bus->shutdown(dev);
} else if (dev->driver && dev->driver->shutdown) { } else if (dev->driver && dev->driver->shutdown) {
dev_dbg(dev, "shutdown\n"); if (initcall_debug)
dev_info(dev, "shutdown\n");
dev->driver->shutdown(dev); dev->driver->shutdown(dev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册