diff options
author | ShuoX Liu <shuox.liu@intel.com> | 2012-11-23 08:14:12 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-27 01:25:36 +0100 |
commit | 0246c4fafccd6c3580bb33e8d30a2c7927e09f02 (patch) | |
tree | 5eaae95f8b71e21ad144728075fd56f63657ec61 | |
parent | Documentation: Chinese translation of Documentation/arm/kernel_user_helpers.txt (diff) | |
download | linux-0246c4fafccd6c3580bb33e8d30a2c7927e09f02.tar.xz linux-0246c4fafccd6c3580bb33e8d30a2c7927e09f02.zip |
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: Yanmin Zhang <yanmin_zhang@linux.intel.com>
Signed-off-by: ShuoX Liu <shuox.liu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/base/core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index abea76c36a4b..985f69c3e1e3 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1840,10 +1840,12 @@ void device_shutdown(void) pm_runtime_barrier(dev); if (dev->bus && dev->bus->shutdown) { - dev_dbg(dev, "shutdown\n"); + if (initcall_debug) + dev_info(dev, "shutdown\n"); dev->bus->shutdown(dev); } else if (dev->driver && dev->driver->shutdown) { - dev_dbg(dev, "shutdown\n"); + if (initcall_debug) + dev_info(dev, "shutdown\n"); dev->driver->shutdown(dev); } |