ACPI / scan: Change ordering of locks for device hotplug
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 30 Aug 2013 12:19:29 +0000 (14:19 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 31 Aug 2013 00:30:14 +0000 (02:30 +0200)
commite0ae8fee0e11c1a8e9b45ab14ab5fe58d87f031d
tree7ee9af50facb90a7c683cd0de10a32e7dd640479
parentf943db40c29f3c82a56956e9ca36f21d6d855db9
ACPI / scan: Change ordering of locks for device hotplug

Change the ordering of device hotplug locks in scan.c so that
acpi_scan_lock is always acquired after device_hotplug_lock.

This will make it possible to use device_hotplug_lock around some
code paths that acquire acpi_scan_lock safely (most importantly
system suspend and hibernation).  Apart from that, acpi_scan_lock
is platform-specific and device_hotplug_lock is general, so the
new ordering appears to be more appropriate from the overall
design viewpoint.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/scan.c