Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154148
b: refs/heads/master
c: d9efae3
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Chiang authored and Len Brown committed Jun 18, 2009
1 parent e00ca72 commit 9b07f85
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 859a3f86ca83346f4097e956d0b27d96aa7a1cff
refs/heads/master: d9efae3688addb15994c9ad9761dada6f988bc14
3 changes: 1 addition & 2 deletions trunk/drivers/acpi/pci_bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
7 changes: 4 additions & 3 deletions trunk/drivers/acpi/pci_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,16 +280,17 @@ int acpi_pci_irq_add_prt(acpi_handle handle, struct pci_bus *bus)
return 0;
}

void acpi_pci_irq_del_prt(int segment, int bus)
void acpi_pci_irq_del_prt(struct pci_bus *bus)
{
struct acpi_prt_entry *entry, *tmp;

printk(KERN_DEBUG
"ACPI: Delete PCI Interrupt Routing Table for %04x:%02x\n",
segment, bus);
pci_domain_nr(bus), bus->number);
spin_lock(&acpi_prt_lock);
list_for_each_entry_safe(entry, tmp, &acpi_prt_list, list) {
if (segment == entry->id.segment && bus == entry->id.bus) {
if (pci_domain_nr(bus) == entry->id.segment
&& bus->number == entry->id.bus) {
list_del(&entry->list);
kfree(entry);
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/acpi/acpi_drivers.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int acpi_pci_link_free_irq(acpi_handle handle);
/* ACPI PCI Interrupt Routing (pci_irq.c) */

int acpi_pci_irq_add_prt(acpi_handle handle, struct pci_bus *bus);
void acpi_pci_irq_del_prt(int segment, int bus);
void acpi_pci_irq_del_prt(struct pci_bus *bus);

/* ACPI PCI Device Binding (pci_bind.c) */

Expand Down

0 comments on commit 9b07f85

Please sign in to comment.