Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166391
b: refs/heads/master
c: b1fbfb2
h: refs/heads/master
i:
  166389: 5388cef
  166387: 5af43ee
  166383: d6cffc8
v: v3
  • Loading branch information
Bjorn Helgaas authored and Len Brown committed Sep 25, 2009
1 parent 4482386 commit 33f4954
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ea8d82fd316208bd0ffe6f64823d04bcb8c57158
refs/heads/master: b1fbfb2ae8f2f0e04219218da6f52f7313466899
10 changes: 10 additions & 0 deletions trunk/drivers/acpi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1155,6 +1155,16 @@ static void acpi_device_set_id(struct acpi_device *device)
break;
}

/*
* We build acpi_devices for some objects that don't have _HID or _CID,
* e.g., PCI bridges and slots. Drivers can't bind to these objects,
* but we do use them indirectly by traversing the acpi_device tree.
* This generic ID isn't useful for driver binding, but it provides
* the useful property that "every acpi_device has an ID."
*/
if (!hid && !cid_list && !cid_add)
hid = "device";

if (hid) {
device->pnp.hardware_id = ACPI_ALLOCATE_ZEROED(strlen (hid) + 1);
if (device->pnp.hardware_id) {
Expand Down

0 comments on commit 33f4954

Please sign in to comment.