ACPI: pci_root: Remove unneeded acpi_handle from driver.
Signed-off-by: Patrick Mochel <mochel@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
e0e4e117d4
commit
432bfaba7d
|
@ -58,7 +58,6 @@ 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;
|
|
||||||
struct acpi_device * device;
|
struct acpi_device * device;
|
||||||
struct acpi_pci_id id;
|
struct acpi_pci_id id;
|
||||||
struct pci_bus *bus;
|
struct pci_bus *bus;
|
||||||
|
@ -171,7 +170,6 @@ static int acpi_pci_root_add(struct acpi_device *device)
|
||||||
memset(root, 0, sizeof(struct acpi_pci_root));
|
memset(root, 0, sizeof(struct acpi_pci_root));
|
||||||
INIT_LIST_HEAD(&root->node);
|
INIT_LIST_HEAD(&root->node);
|
||||||
|
|
||||||
root->handle = device->handle;
|
|
||||||
root->device = device;
|
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);
|
||||||
|
@ -317,7 +315,7 @@ static int acpi_pci_root_start(struct acpi_device *device)
|
||||||
|
|
||||||
|
|
||||||
list_for_each_entry(root, &acpi_pci_roots, node) {
|
list_for_each_entry(root, &acpi_pci_roots, node) {
|
||||||
if (root->handle == device->handle) {
|
if (root->device == device) {
|
||||||
pci_bus_add_devices(root->bus);
|
pci_bus_add_devices(root->bus);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue