commit | 37f908778f20bbcc35ab9a98a5b584329c6abf08 | [log] [tgz] |
---|---|---|
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Sun Jun 30 23:46:42 2013 +0200 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Mon Jul 15 01:33:11 2013 +0200 |
tree | 1b8dfacd079665a19dee7a876fb79f68e75da505 | |
parent | 96c0a4d4902c3d5f56bde95d3e2d96689ca64b6d [diff] |
ACPI / dock: Walk list in reverse order during removal of devices If there are indirect dependencies between devices in a dock station's dependent devices list, they may be broken if the devices are removed in the same order in which they have been added. For this reason, make the code in handle_eject_request() walk the list of dependent devices in reverse order. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Yinghai Lu <yinghai@kernel.org>