diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-06 13:05:22 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-13 13:41:38 +0100 |
commit | 87b85b3c8a4ac286d41a1c6419014b7562e4663b (patch) | |
tree | 292ec2771ebf354cd096f7396f06cd12d2806f9b /drivers/acpi/bgrt.c | |
parent | 73ce873a898ff385cd18e9068d38a35ff48e7585 (diff) |
ACPI / scan: Follow priorities of IDs when matching scan handlers
The IDs of ACPI device nodes stored in their pnp.ids member arrays
are sorted by decreasing priority (i.e. the highest-priority ID is
the first entry). This means that when matching scan handlers to
device nodes, the namespace scanning code should walk the list of
scan handlers for each device node ID instead of walking the list
of device node IDs for each handler (the latter causes the first
handler matching any of the device node IDs to be chosen, although
there may be another handler matching an ID of a higher priority
which should be preferred). Make the code follow this observation.
This change has been suggested and justified by Toshi Kani.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'drivers/acpi/bgrt.c')
0 files changed, 0 insertions, 0 deletions