diff mbox

ACPI: PCI: use generic pci_swizzle_interrupt_pin()

Message ID 20090217204910.4213.77580.stgit@bob.kio (mailing list archive)
State Accepted
Headers show

Commit Message

Bjorn Helgaas Feb. 17, 2009, 8:49 p.m. UTC
Use the generic pci_swizzle_interrupt_pin() instead of ACPI-specific code.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
---
 drivers/acpi/pci_irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Bjorn Helgaas March 12, 2009, 10:51 p.m. UTC | #1
On Tuesday 17 February 2009 1:49:10 pm Bjorn Helgaas wrote:
> Use the generic pci_swizzle_interrupt_pin() instead of ACPI-specific code.

Did you have a reaction to this?  If you did, I missed it.

> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
> ---
>  drivers/acpi/pci_irq.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c
> index 891bdf6..be6b909 100644
> --- a/drivers/acpi/pci_irq.c
> +++ b/drivers/acpi/pci_irq.c
> @@ -319,7 +319,7 @@ static struct acpi_prt_entry
> *acpi_pci_irq_lookup(struct pci_dev *dev, int pin) */
>  	bridge = dev->bus->self;
>  	while (bridge) {
> -		pin = (((pin - 1) + PCI_SLOT(dev->devfn)) % 4) + 1;
> +		pin = pci_swizzle_interrupt_pin(dev, pin);
>
>  		if ((bridge->class >> 8) == PCI_CLASS_BRIDGE_CARDBUS) {
>  			/* PC card has the same IRQ as its cardbridge */


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Len Brown March 17, 2009, 5:56 a.m. UTC | #2
applied

--
Len Brown, Intel Open Source Technology Center

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/acpi/pci_irq.c b/drivers/acpi/pci_irq.c
index 891bdf6..be6b909 100644
--- a/drivers/acpi/pci_irq.c
+++ b/drivers/acpi/pci_irq.c
@@ -319,7 +319,7 @@  static struct acpi_prt_entry *acpi_pci_irq_lookup(struct pci_dev *dev, int pin)
 	 */
 	bridge = dev->bus->self;
 	while (bridge) {
-		pin = (((pin - 1) + PCI_SLOT(dev->devfn)) % 4) + 1;
+		pin = pci_swizzle_interrupt_pin(dev, pin);
 
 		if ((bridge->class >> 8) == PCI_CLASS_BRIDGE_CARDBUS) {
 			/* PC card has the same IRQ as its cardbridge */