driver core: use initcall_debug to control shutdown info
[linux-2.6-block.git] / drivers / base / core.c
index abea76c36a4b96a10201bb4eeef5c0650e6644ae..985f69c3e1e3dbd9be0a849c428ef0c2a88abad1 100644 (file)
@@ -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);
                }