aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Stone <ahs3@redhat.com>2014-08-28 13:14:16 -0400
committerGraeme Gregory <graeme.gregory@linaro.org>2014-11-06 11:57:40 +0000
commita5fee11e6a9c3bcb6145487cc143961e6474cd56 (patch)
tree9a64ded83401fda794c36e1ba1c35cd9f1225f52
parent41726e0c6706effd5610be4d209f4656eb0af2c6 (diff)
downloadleg-kernel-a5fee11e6a9c3bcb6145487cc143961e6474cd56.tar.gz
Fix arm64 compilation error in PNP code
Signed-off-by: Mark Salter <msalter@redhat.com>
-rw-r--r--drivers/pnp/resource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c
index 782e82289571..d952462d2bf9 100644
--- a/drivers/pnp/resource.c
+++ b/drivers/pnp/resource.c
@@ -313,6 +313,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,
@@ -326,6 +327,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;
}