[Arm-dev] [PATCH v1 57/87] Fix arm64 compilation error in PNP code

Thu Aug 13 13:18:54 UTC 2015
Vadim Lomovtsev <Vadim.Lomovtsev at caviumnetworks.com>

From: Al Stone <ahs3 at redhat.com>

Signed-off-by: Mark Salter <msalter at redhat.com>
Signed-off-by: Vadim Lomovtsev <Vadim.Lomovtsev at 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;
 }
-- 
2.4.3