Skip to content

Commit

Permalink
ACPI: pci root: add struct acpi_device to struct acpi_pci_root.
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Mochel <mochel@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Patrick Mochel authored and Len Brown committed Jun 30, 2006
1 parent 74b142e commit 32917e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/acpi/pci_root.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ static struct acpi_driver acpi_pci_root_driver = {
struct acpi_pci_root {
struct list_head node;
acpi_handle handle;
struct acpi_device * device;
struct acpi_pci_id id;
struct pci_bus *bus;
};
Expand Down Expand Up @@ -171,6 +172,7 @@ static int acpi_pci_root_add(struct acpi_device *device)
INIT_LIST_HEAD(&root->node);

root->handle = device->handle;
root->device = device;
strcpy(acpi_device_name(device), ACPI_PCI_ROOT_DEVICE_NAME);
strcpy(acpi_device_class(device), ACPI_PCI_ROOT_CLASS);
acpi_driver_data(device) = root;
Expand Down

0 comments on commit 32917e5

Please sign in to comment.