mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 08:48:48 +00:00
ACPI: pci root: add struct acpi_device to struct acpi_pci_root.
Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
74b142e0fe
commit
32917e5b58
@ -59,6 +59,7 @@ static struct acpi_driver acpi_pci_root_driver = {
|
|||||||
struct acpi_pci_root {
|
struct acpi_pci_root {
|
||||||
struct list_head node;
|
struct list_head node;
|
||||||
acpi_handle handle;
|
acpi_handle handle;
|
||||||
|
struct acpi_device * device;
|
||||||
struct acpi_pci_id id;
|
struct acpi_pci_id id;
|
||||||
struct pci_bus *bus;
|
struct pci_bus *bus;
|
||||||
};
|
};
|
||||||
@ -171,6 +172,7 @@ static int acpi_pci_root_add(struct acpi_device *device)
|
|||||||
INIT_LIST_HEAD(&root->node);
|
INIT_LIST_HEAD(&root->node);
|
||||||
|
|
||||||
root->handle = device->handle;
|
root->handle = device->handle;
|
||||||
|
root->device = device;
|
||||||
strcpy(acpi_device_name(device), ACPI_PCI_ROOT_DEVICE_NAME);
|
strcpy(acpi_device_name(device), ACPI_PCI_ROOT_DEVICE_NAME);
|
||||||
strcpy(acpi_device_class(device), ACPI_PCI_ROOT_CLASS);
|
strcpy(acpi_device_class(device), ACPI_PCI_ROOT_CLASS);
|
||||||
acpi_driver_data(device) = root;
|
acpi_driver_data(device) = root;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user