]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ACPI / scan: Do not use dummy HID for system bus ACPI nodes
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 4 Jan 2013 22:00:54 +0000 (23:00 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 16 Jan 2013 01:13:19 +0000 (01:13 +0000)
commitfadfad5b4e36f2b9832603e7179423998487f962
tree33d921fdaaff95550a49081ee0e282bf044bc04a
parentc45475d04b2fc3edb8a3197ac78987afb2ca42e5
ACPI / scan: Do not use dummy HID for system bus ACPI nodes

commit 4f5f64cf0cc916220aaa055992e31195470cfe37 upstream.

At one point acpi_device_set_id() checks if acpi_device_hid(device)
returns NULL, but that never happens, so system bus devices with an
empty list of PNP IDs are given the dummy HID ("device") instead of
the "system bus HID" ("LNXSYBUS").  Fix the code to use the right
check.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/acpi/scan.c