From: Satoru Takeuchi Date: Tue, 12 Sep 2006 17:24:14 +0000 (-0700) Subject: IA64: PCI: dont disable irq which is not enabled X-Git-Tag: v2.6.19-rc1~1004^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa4f63cad4f70a52adbabb66ac6c8b6072910fdf;p=linux-2.6 IA64: PCI: dont disable irq which is not enabled This patch prevents pcibios_disable_device() from disabling interrupts of devices which is not enabled. Signed-off-by: Kenji Kaneshige Signed-off-by: MUNEDA Takahiro Signed-off-by: Satoru Takeuchi Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman --- 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) void pcibios_disable_device (struct pci_dev *dev) { - acpi_pci_irq_disable(dev); + if (dev->is_enabled) + acpi_pci_irq_disable(dev); } void