diff options
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r-- | drivers/base/core.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 9c0070b5bd3e..1e2e0fa8a450 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -770,13 +770,6 @@ int device_add(struct device *dev) | |||
770 | struct class_interface *class_intf; | 770 | struct class_interface *class_intf; |
771 | int error; | 771 | int error; |
772 | 772 | ||
773 | error = pm_sleep_lock(); | ||
774 | if (error) { | ||
775 | dev_warn(dev, "Suspicious %s during suspend\n", __FUNCTION__); | ||
776 | dump_stack(); | ||
777 | return error; | ||
778 | } | ||
779 | |||
780 | dev = get_device(dev); | 773 | dev = get_device(dev); |
781 | if (!dev || !strlen(dev->bus_id)) { | 774 | if (!dev || !strlen(dev->bus_id)) { |
782 | error = -EINVAL; | 775 | error = -EINVAL; |
@@ -843,7 +836,6 @@ int device_add(struct device *dev) | |||
843 | } | 836 | } |
844 | Done: | 837 | Done: |
845 | put_device(dev); | 838 | put_device(dev); |
846 | pm_sleep_unlock(); | ||
847 | return error; | 839 | return error; |
848 | BusError: | 840 | BusError: |
849 | device_pm_remove(dev); | 841 | device_pm_remove(dev); |