1
0
Fork 0

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>
hifive-unleashed-5.1
Bob Liu 2012-04-27 14:13:01 +08:00
parent 8e2f524fd9
commit 494b794808
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}