diff options
Diffstat (limited to 'arch/blackfin/kernel/bfin_gpio.c')
-rw-r--r-- | arch/blackfin/kernel/bfin_gpio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index 22705eeff34f..c4161e03df78 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c | |||
@@ -762,6 +762,8 @@ int peripheral_request(unsigned short per, const char *label) | |||
762 | if (!(per & P_DEFINED)) | 762 | if (!(per & P_DEFINED)) |
763 | return -ENODEV; | 763 | return -ENODEV; |
764 | 764 | ||
765 | BUG_ON(ident >= MAX_RESOURCES); | ||
766 | |||
765 | local_irq_save_hw(flags); | 767 | local_irq_save_hw(flags); |
766 | 768 | ||
767 | /* If a pin can be muxed as either GPIO or peripheral, make | 769 | /* If a pin can be muxed as either GPIO or peripheral, make |