]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:18:36 +0000 (09:18 -0800)
commitb500eb39c56d89b45c088cba868f20abcfd63cbf
treecc6263cad58f5a1bbc3d6e14a8a2a41f4a2c8a9d
parent100865b4ba20cbe67875b4acf1c0a6711afd41ef
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/scan.c