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>
This commit is contained in:
committed by
Len Brown
parent
859a3f86ca
commit
d9efae3688
@@ -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;
|
||||
|
Reference in New Issue
Block a user