ACPI / platform: use ACPI device name instead of _HID._UID
authorMika Westerberg <mika.westerberg@linux.intel.com>
Sat, 10 Nov 2012 22:16:02 +0000 (23:16 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:28:02 +0000 (00:28 +0100)
commitb4b6cae2f36d92b31788f10816709d5290a1119a
treea8833a3a7989ad27210eae9f8bbf3b7276afe82a
parent91e5687805885f9fceb60b95e950a3d3bdcf4764
ACPI / platform: use ACPI device name instead of _HID._UID

Using _UID makes the ACPI platform bus code depend on BIOS to get it
right. If it doesn't we fail to create the platform device as the name
should be unique.

The ACPI core already makes a unique name when it first creates the ACPI
device so we can use that same name as the platform device name instead of
trusting that the BIOS sets the _UIDs correctly.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_platform.c