diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/power/shutdown.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/base/power/shutdown.c b/drivers/base/power/shutdown.c index 3483ae4d57f5..58b6f77a1b34 100644 --- a/drivers/base/power/shutdown.c +++ b/drivers/base/power/shutdown.c | |||
@@ -36,7 +36,6 @@ void device_shutdown(void) | |||
36 | { | 36 | { |
37 | struct device * dev, *devn; | 37 | struct device * dev, *devn; |
38 | 38 | ||
39 | down_write(&devices_subsys.rwsem); | ||
40 | list_for_each_entry_safe_reverse(dev, devn, &devices_subsys.kset.list, | 39 | list_for_each_entry_safe_reverse(dev, devn, &devices_subsys.kset.list, |
41 | kobj.entry) { | 40 | kobj.entry) { |
42 | if (dev->bus && dev->bus->shutdown) { | 41 | if (dev->bus && dev->bus->shutdown) { |
@@ -47,7 +46,6 @@ void device_shutdown(void) | |||
47 | dev->driver->shutdown(dev); | 46 | dev->driver->shutdown(dev); |
48 | } | 47 | } |
49 | } | 48 | } |
50 | up_write(&devices_subsys.rwsem); | ||
51 | 49 | ||
52 | sysdev_shutdown(); | 50 | sysdev_shutdown(); |
53 | } | 51 | } |