summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pci_root.c
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@linux.intel.com>2006-05-19 22:54:51 +0200
committerLen Brown <len.brown@intel.com>2006-06-30 08:51:34 +0200
commit432bfaba7d4e70483fc5af164e020066f4921bff (patch)
tree5c3bcd7707ddc5c94b79bd6d0e59f8b1a6cf76c4 /drivers/acpi/pci_root.c
parentACPI: pci_link: Remove unneeded acpi_handle from driver. (diff)
downloadlinux-432bfaba7d4e70483fc5af164e020066f4921bff.tar.xz
linux-432bfaba7d4e70483fc5af164e020066f4921bff.zip
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>
Diffstat (limited to 'drivers/acpi/pci_root.c')
-rw-r--r--drivers/acpi/pci_root.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
index 22ca3a1f3896..0984a1ee24ed 100644
--- a/drivers/acpi/pci_root.c
+++ b/drivers/acpi/pci_root.c
@@ -58,7 +58,6 @@ 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;
@@ -171,7 +170,6 @@ static int acpi_pci_root_add(struct acpi_device *device)
memset(root, 0, sizeof(struct acpi_pci_root));
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);
@@ -317,7 +315,7 @@ static int acpi_pci_root_start(struct acpi_device *device)
list_for_each_entry(root, &acpi_pci_roots, node) {
- if (root->handle == device->handle) {
+ if (root->device == device) {
pci_bus_add_devices(root->bus);
return 0;
}