aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/acpi/pci_root.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index 8f10442119f0..2d63a385b27b 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -59,6 +59,7 @@ static struct acpi_driver acpi_pci_root_driver = {
59struct acpi_pci_root { 59struct acpi_pci_root {
60 struct list_head node; 60 struct list_head node;
61 acpi_handle handle; 61 acpi_handle handle;
62 struct acpi_device * device;
62 struct acpi_pci_id id; 63 struct acpi_pci_id id;
63 struct pci_bus *bus; 64 struct pci_bus *bus;
64}; 65};
@@ -171,6 +172,7 @@ static int acpi_pci_root_add(struct acpi_device *device)
171 INIT_LIST_HEAD(&root->node); 172 INIT_LIST_HEAD(&root->node);
172 173
173 root->handle = device->handle; 174 root->handle = device->handle;
175 root->device = device;
174 strcpy(acpi_device_name(device), ACPI_PCI_ROOT_DEVICE_NAME); 176 strcpy(acpi_device_name(device), ACPI_PCI_ROOT_DEVICE_NAME);
175 strcpy(acpi_device_class(device), ACPI_PCI_ROOT_CLASS); 177 strcpy(acpi_device_class(device), ACPI_PCI_ROOT_CLASS);
176 acpi_driver_data(device) = root; 178 acpi_driver_data(device) = root;