Commit aa4f63ca authored by Satoru Takeuchi's avatar Satoru Takeuchi Committed by Greg Kroah-Hartman

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: default avatarKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: default avatarMUNEDA Takahiro <muneda.takahiro@jp.fujitsu.com>
Signed-off-by: default avatarSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: default avatarKristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 600812ec
...@@ -562,6 +562,7 @@ pcibios_enable_device (struct pci_dev *dev, int mask) ...@@ -562,6 +562,7 @@ pcibios_enable_device (struct pci_dev *dev, int mask)
void void
pcibios_disable_device (struct pci_dev *dev) pcibios_disable_device (struct pci_dev *dev)
{ {
if (dev->is_enabled)
acpi_pci_irq_disable(dev); acpi_pci_irq_disable(dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment