]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Sat, 10 Nov 2012 22:16:02 +0000 (23:16 +0100)
commit58c0e9661476d466fbe0481f4d6e1cbb2d9df5fc
tree46703e6fe0dd7b1df040a7adb03dea7060d5e8e9
parent045966308f172173f9cd696b6ae68b2ca83d8f83
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