aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/scan.c6
-rw-r--r--include/acpi/acpi_bus.h2
-rw-r--r--include/acpi/acpi_drivers.h16
3 files changed, 12 insertions, 12 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index 30a39baeac51..4139e65d0ff5 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -26,7 +26,7 @@ DEFINE_SPINLOCK(acpi_device_lock);
26LIST_HEAD(acpi_wakeup_device_list); 26LIST_HEAD(acpi_wakeup_device_list);
27 27
28struct acpi_device_bus_id{ 28struct acpi_device_bus_id{
29 char bus_id[9]; 29 char bus_id[15];
30 unsigned int instance_no; 30 unsigned int instance_no;
31 struct list_head node; 31 struct list_head node;
32}; 32};
@@ -342,7 +342,7 @@ static int acpi_device_register(struct acpi_device *device,
342 * If failed, create one and link it into acpi_bus_id_list 342 * If failed, create one and link it into acpi_bus_id_list
343 */ 343 */
344 list_for_each_entry(acpi_device_bus_id, &acpi_bus_id_list, node) { 344 list_for_each_entry(acpi_device_bus_id, &acpi_bus_id_list, node) {
345 if(!strcmp(acpi_device_bus_id->bus_id, device->flags.hardware_id? device->pnp.hardware_id : "PNPIDNON")) { 345 if(!strcmp(acpi_device_bus_id->bus_id, device->flags.hardware_id? device->pnp.hardware_id : "device")) {
346 acpi_device_bus_id->instance_no ++; 346 acpi_device_bus_id->instance_no ++;
347 found = 1; 347 found = 1;
348 kfree(new_bus_id); 348 kfree(new_bus_id);
@@ -351,7 +351,7 @@ static int acpi_device_register(struct acpi_device *device,
351 } 351 }
352 if(!found) { 352 if(!found) {
353 acpi_device_bus_id = new_bus_id; 353 acpi_device_bus_id = new_bus_id;
354 strcpy(acpi_device_bus_id->bus_id, device->flags.hardware_id ? device->pnp.hardware_id : "PNPIDNON"); 354 strcpy(acpi_device_bus_id->bus_id, device->flags.hardware_id ? device->pnp.hardware_id : "device");
355 acpi_device_bus_id->instance_no = 0; 355 acpi_device_bus_id->instance_no = 0;
356 list_add_tail(&acpi_device_bus_id->node, &acpi_bus_id_list); 356 list_add_tail(&acpi_device_bus_id->node, &acpi_bus_id_list);
357 } 357 }
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index a6b4037beeae..e7df8423d15c 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -184,7 +184,7 @@ struct acpi_device_dir {
184 184
185typedef char acpi_bus_id[5]; 185typedef char acpi_bus_id[5];
186typedef unsigned long acpi_bus_address; 186typedef unsigned long acpi_bus_address;
187typedef char acpi_hardware_id[9]; 187typedef char acpi_hardware_id[15];
188typedef char acpi_unique_id[9]; 188typedef char acpi_unique_id[9];
189typedef char acpi_device_name[40]; 189typedef char acpi_device_name[40];
190typedef char acpi_device_class[20]; 190typedef char acpi_device_class[20];
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h
index 2781e6628645..1b18c36da789 100644
--- a/include/acpi/acpi_drivers.h
+++ b/include/acpi/acpi_drivers.h
@@ -36,14 +36,14 @@
36 36
37/* _HID definitions */ 37/* _HID definitions */
38 38
39#define ACPI_POWER_HID "ACPI_PWR" 39#define ACPI_POWER_HID "power_resource"
40#define ACPI_PROCESSOR_HID "ACPI_CPU" 40#define ACPI_PROCESSOR_HID "processor"
41#define ACPI_SYSTEM_HID "ACPI_SYS" 41#define ACPI_SYSTEM_HID "acpi_system"
42#define ACPI_THERMAL_HID "ACPI_THM" 42#define ACPI_THERMAL_HID "thermal"
43#define ACPI_BUTTON_HID_POWERF "ACPI_FPB" 43#define ACPI_BUTTON_HID_POWERF "button_power"
44#define ACPI_BUTTON_HID_SLEEPF "ACPI_FSB" 44#define ACPI_BUTTON_HID_SLEEPF "button_sleep"
45 45#define ACPI_VIDEO_HID "video"
46#define ACPI_VIDEO_HID "ACPI_VID" 46#define ACPI_BAY_HID "bay"
47/* -------------------------------------------------------------------------- 47/* --------------------------------------------------------------------------
48 PCI 48 PCI
49 -------------------------------------------------------------------------- */ 49 -------------------------------------------------------------------------- */