Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0246c4fa authored by ShuoX Liu's avatar ShuoX Liu Committed by Greg Kroah-Hartman
Browse files

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: default avatarYanmin Zhang <yanmin_zhang@linux.intel.com>
Signed-off-by: default avatarShuoX Liu <shuox.liu@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 83ca897d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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);
		}