diff options
Diffstat (limited to 'drivers/base/core.c')
| -rw-r--r-- | drivers/base/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index cf8c605ec32e..5411af447418 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
| @@ -2811,6 +2811,9 @@ void device_shutdown(void) | |||
| 2811 | { | 2811 | { |
| 2812 | struct device *dev, *parent; | 2812 | struct device *dev, *parent; |
| 2813 | 2813 | ||
| 2814 | wait_for_device_probe(); | ||
| 2815 | device_block_probing(); | ||
| 2816 | |||
| 2814 | spin_lock(&devices_kset->list_lock); | 2817 | spin_lock(&devices_kset->list_lock); |
| 2815 | /* | 2818 | /* |
| 2816 | * Walk the devices list backward, shutting down each in turn. | 2819 | * Walk the devices list backward, shutting down each in turn. |
