diff options
author | Alexander Chiang <achiang@hp.com> | 2009-06-10 19:55:40 +0000 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-06-17 23:22:16 -0400 |
commit | d9efae3688addb15994c9ad9761dada6f988bc14 (patch) | |
tree | 6d697c2cca0aa47b6f50880682699eaca72e9197 /drivers/acpi/pci_bind.c | |
parent | 859a3f86ca83346f4097e956d0b27d96aa7a1cff (diff) | |
download | op-kernel-dev-d9efae3688addb15994c9ad9761dada6f988bc14.zip op-kernel-dev-d9efae3688addb15994c9ad9761dada6f988bc14.tar.gz |
ACPI: simplify acpi_pci_irq_del_prt() API
There is no need to pass a segment/bus tuple to this API, as the callsite
always has a struct pci_bus. We can derive segment/bus from the
struct pci_bus, so let's take this opportunit to simplify the API and
make life easier for the callers.
Signed-off-by: Alex Chiang <achiang@hp.com>
Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/pci_bind.c')
-rw-r--r-- | drivers/acpi/pci_bind.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/acpi/pci_bind.c b/drivers/acpi/pci_bind.c index 6eb58ef..62cb383 100644 --- a/drivers/acpi/pci_bind.c +++ b/drivers/acpi/pci_bind.c @@ -113,8 +113,7 @@ static int acpi_pci_unbind(struct acpi_device *device) return 0; if (dev->subordinate) - acpi_pci_irq_del_prt(pci_domain_nr(dev->bus), - dev->subordinate->number); + acpi_pci_irq_del_prt(dev->subordinate); pci_dev_put(dev); return 0; |