x86, irq, PCI: Keep IRQ assignment for PCI devices during suspend/hibernation
[pandora-kernel.git] / arch / x86 / pci / intel_mid_pci.c
index 09fece3..3865116 100644 (file)
@@ -229,7 +229,7 @@ static int intel_mid_pci_irq_enable(struct pci_dev *dev)
 
 static void intel_mid_pci_irq_disable(struct pci_dev *dev)
 {
-       if (dev->irq > 0)
+       if (!dev->dev.power.is_prepared && dev->irq > 0)
                mp_unmap_irq(dev->irq);
 }