summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/pci_link.c
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@linux.intel.com>2006-05-19 16:54:50 -0400
committerLen Brown <len.brown@intel.com>2006-06-30 02:51:31 -0400
commite0e4e117d4c898b0df749d5b88c86955151abf53 (patch)
treee44050f0127be6d1eca50292f10b5af50a2848f2 /drivers/acpi/pci_link.c
parent579c896cc91434e4feb938f780eba580c93fa0da (diff)
downloadblackbird-op-linux-e0e4e117d4c898b0df749d5b88c86955151abf53.tar.gz
blackbird-op-linux-e0e4e117d4c898b0df749d5b88c86955151abf53.zip
ACPI: pci_link: 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_link.c')
-rw-r--r--drivers/acpi/pci_link.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c
index 68ee80a6e6f7..8197c0e40769 100644
--- a/drivers/acpi/pci_link.c
+++ b/drivers/acpi/pci_link.c
@@ -83,7 +83,6 @@ struct acpi_pci_link_irq {
struct acpi_pci_link {
struct list_head node;
struct acpi_device *device;
- acpi_handle handle;
struct acpi_pci_link_irq irq;
int refcnt;
};
@@ -249,8 +248,7 @@ static int acpi_pci_link_get_current(struct acpi_pci_link *link)
acpi_status status = AE_OK;
int irq = 0;
-
- if (!link || !link->handle)
+ if (!link)
return -EINVAL;
link->irq.active = 0;
@@ -726,7 +724,6 @@ static int acpi_pci_link_add(struct acpi_device *device)
memset(link, 0, sizeof(struct acpi_pci_link));
link->device = device;
- link->handle = device->handle;
strcpy(acpi_device_name(device), ACPI_PCI_LINK_DEVICE_NAME);
strcpy(acpi_device_class(device), ACPI_PCI_LINK_CLASS);
acpi_driver_data(device) = link;
OpenPOWER on IntegriCloud