aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r--drivers/base/core.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 150a41580fad..417913974df8 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1399,7 +1399,7 @@ struct root_device {
1399 struct module *owner; 1399 struct module *owner;
1400}; 1400};
1401 1401
1402inline struct root_device *to_root_device(struct device *d) 1402static inline struct root_device *to_root_device(struct device *d)
1403{ 1403{
1404 return container_of(d, struct root_device, dev); 1404 return container_of(d, struct root_device, dev);
1405} 1405}
@@ -1840,10 +1840,12 @@ void device_shutdown(void)
1840 pm_runtime_barrier(dev); 1840 pm_runtime_barrier(dev);
1841 1841
1842 if (dev->bus && dev->bus->shutdown) { 1842 if (dev->bus && dev->bus->shutdown) {
1843 dev_dbg(dev, "shutdown\n"); 1843 if (initcall_debug)
1844 dev_info(dev, "shutdown\n");
1844 dev->bus->shutdown(dev); 1845 dev->bus->shutdown(dev);
1845 } else if (dev->driver && dev->driver->shutdown) { 1846 } else if (dev->driver && dev->driver->shutdown) {
1846 dev_dbg(dev, "shutdown\n"); 1847 if (initcall_debug)
1848 dev_info(dev, "shutdown\n");
1847 dev->driver->shutdown(dev); 1849 dev->driver->shutdown(dev);
1848 } 1850 }
1849 1851