summaryrefslogtreecommitdiff
path: root/arch/blackfin/mach-common/ints-priority.c
diff options
context:
space:
mode:
authorBob Liu <lliubbo@gmail.com>2012-04-27 06:13:01 (GMT)
committerBob Liu <lliubbo@gmail.com>2012-05-21 06:54:33 (GMT)
commit494b794808c6b1ead80590c01b08a87850cc4724 (patch)
tree21cee8f26e84617a32a21d5f4898f9bad757c534 /arch/blackfin/mach-common/ints-priority.c
parent8e2f524fd99d0f5574c4323006e29c1f3d5d564e (diff)
downloadlinux-fsl-qoriq-494b794808c6b1ead80590c01b08a87850cc4724.tar.xz
blackfin: mach-common: ints-priority: fix compile error
IRQ_PINT4/PINT5 are not defined on !CONFIG_BF60x, this patch fix it. Signed-off-by: Bob Liu <lliubbo@gmail.com>
Diffstat (limited to 'arch/blackfin/mach-common/ints-priority.c')
-rw-r--r--arch/blackfin/mach-common/ints-priority.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c
index bf5dc5f..1146a61 100644
--- a/arch/blackfin/mach-common/ints-priority.c
+++ b/arch/blackfin/mach-common/ints-priority.c
@@ -1107,12 +1107,14 @@ static int bfin_gpio_set_wake(struct irq_data *d, unsigned int state)
case 1:
pint_irq = IRQ_PINT1;
break;
+#ifdef CONFIG_BF60x
case 4:
pint_irq = IRQ_PINT4;
break;
case 5:
pint_irq = IRQ_PINT5;
break;
+#endif
default:
return -EINVAL;
}