diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/pci/pci.c | 3 | ||||
-rw-r--r-- | arch/powerpc/sysdev/mpic.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 60b45e79f0..15c7c670da 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c | |||
@@ -562,7 +562,8 @@ pcibios_enable_device (struct pci_dev *dev, int mask) | |||
562 | void | 562 | void |
563 | pcibios_disable_device (struct pci_dev *dev) | 563 | pcibios_disable_device (struct pci_dev *dev) |
564 | { | 564 | { |
565 | acpi_pci_irq_disable(dev); | 565 | if (dev->is_enabled) |
566 | acpi_pci_irq_disable(dev); | ||
566 | } | 567 | } |
567 | 568 | ||
568 | void | 569 | void |
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c index b604926401..723972bb5b 100644 --- a/arch/powerpc/sysdev/mpic.c +++ b/arch/powerpc/sysdev/mpic.c | |||
@@ -339,7 +339,7 @@ static void __init mpic_scan_ht_pic(struct mpic *mpic, u8 __iomem *devbase, | |||
339 | for (pos = readb(devbase + PCI_CAPABILITY_LIST); pos != 0; | 339 | for (pos = readb(devbase + PCI_CAPABILITY_LIST); pos != 0; |
340 | pos = readb(devbase + pos + PCI_CAP_LIST_NEXT)) { | 340 | pos = readb(devbase + pos + PCI_CAP_LIST_NEXT)) { |
341 | u8 id = readb(devbase + pos + PCI_CAP_LIST_ID); | 341 | u8 id = readb(devbase + pos + PCI_CAP_LIST_ID); |
342 | if (id == PCI_CAP_ID_HT_IRQCONF) { | 342 | if (id == PCI_CAP_ID_HT) { |
343 | id = readb(devbase + pos + 3); | 343 | id = readb(devbase + pos + 3); |
344 | if (id == 0x80) | 344 | if (id == 0x80) |
345 | break; | 345 | break; |