aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r--drivers/acpi/scan.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index a85b4080c3ca..fe171aa7a98c 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -38,14 +38,14 @@ static const struct acpi_device_id acpi_platform_device_ids[] = {
38 { "PNP0D40" }, 38 { "PNP0D40" },
39 39
40 /* Haswell LPSS devices */ 40 /* Haswell LPSS devices */
41 { "INT33C0", 0 }, 41 { "INT33C0", ACPI_PLATFORM_CLK },
42 { "INT33C1", 0 }, 42 { "INT33C1", ACPI_PLATFORM_CLK },
43 { "INT33C2", 0 }, 43 { "INT33C2", ACPI_PLATFORM_CLK },
44 { "INT33C3", 0 }, 44 { "INT33C3", ACPI_PLATFORM_CLK },
45 { "INT33C4", 0 }, 45 { "INT33C4", ACPI_PLATFORM_CLK },
46 { "INT33C5", 0 }, 46 { "INT33C5", ACPI_PLATFORM_CLK },
47 { "INT33C6", 0 }, 47 { "INT33C6", ACPI_PLATFORM_CLK },
48 { "INT33C7", 0 }, 48 { "INT33C7", ACPI_PLATFORM_CLK },
49 49
50 { } 50 { }
51}; 51};
@@ -1553,6 +1553,7 @@ static acpi_status acpi_bus_check_add(acpi_handle handle, u32 lvl_not_used,
1553static acpi_status acpi_bus_device_attach(acpi_handle handle, u32 lvl_not_used, 1553static acpi_status acpi_bus_device_attach(acpi_handle handle, u32 lvl_not_used,
1554 void *not_used, void **ret_not_used) 1554 void *not_used, void **ret_not_used)
1555{ 1555{
1556 const struct acpi_device_id *id;
1556 acpi_status status = AE_OK; 1557 acpi_status status = AE_OK;
1557 struct acpi_device *device; 1558 struct acpi_device *device;
1558 unsigned long long sta_not_used; 1559 unsigned long long sta_not_used;
@@ -1568,9 +1569,10 @@ static acpi_status acpi_bus_device_attach(acpi_handle handle, u32 lvl_not_used,
1568 if (acpi_bus_get_device(handle, &device)) 1569 if (acpi_bus_get_device(handle, &device))
1569 return AE_CTRL_DEPTH; 1570 return AE_CTRL_DEPTH;
1570 1571
1571 if (!acpi_match_device_ids(device, acpi_platform_device_ids)) { 1572 id = __acpi_match_device(device, acpi_platform_device_ids);
1573 if (id) {
1572 /* This is a known good platform device. */ 1574 /* This is a known good platform device. */
1573 acpi_create_platform_device(device); 1575 acpi_create_platform_device(device, id->driver_data);
1574 } else if (device_attach(&device->dev) < 0) { 1576 } else if (device_attach(&device->dev) < 0) {
1575 status = AE_CTRL_DEPTH; 1577 status = AE_CTRL_DEPTH;
1576 } 1578 }