From: Al Stone ahs3@redhat.com
Signed-off-by: Mark Salter msalter@redhat.com Signed-off-by: Vadim Lomovtsev Vadim.Lomovtsev@caviumnetworks.com --- drivers/pnp/resource.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c index f980ff7..01f55a4 100644 --- a/drivers/pnp/resource.c +++ b/drivers/pnp/resource.c @@ -315,6 +315,7 @@ static int pci_dev_uses_irq(struct pnp_dev *pnp, struct pci_dev *pci, progif = class & 0xff; class >>= 8;
+#ifdef HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ if (class == PCI_CLASS_STORAGE_IDE) { /* * Unless both channels are native-PCI mode only, @@ -328,6 +329,7 @@ static int pci_dev_uses_irq(struct pnp_dev *pnp, struct pci_dev *pci, return 1; } } +#endif /* HAVE_ARCH_PCI_GET_LEGACY_IDE_IRQ */
return 0; }