aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/blackfin/kernel/bfin_gpio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c
index ea67ae5b033e..0c4fc31029c2 100644
--- a/arch/blackfin/kernel/bfin_gpio.c
+++ b/arch/blackfin/kernel/bfin_gpio.c
@@ -1053,9 +1053,15 @@ int bfin_gpio_request(unsigned gpio, const char *label)
1053 local_irq_restore_hw(flags); 1053 local_irq_restore_hw(flags);
1054 return -EBUSY; 1054 return -EBUSY;
1055 } 1055 }
1056 if (unlikely(reserved_gpio_irq_map[gpio_bank(gpio)] & gpio_bit(gpio))) 1056 if (unlikely(reserved_gpio_irq_map[gpio_bank(gpio)] & gpio_bit(gpio))) {
1057 printk(KERN_NOTICE "bfin-gpio: GPIO %d is already reserved as gpio-irq!" 1057 printk(KERN_NOTICE "bfin-gpio: GPIO %d is already reserved as gpio-irq!"
1058 " (Documentation/blackfin/bfin-gpio-notes.txt)\n", gpio); 1058 " (Documentation/blackfin/bfin-gpio-notes.txt)\n", gpio);
1059 }
1060#ifndef BF548_FAMILY
1061 else { /* Reset POLAR setting when acquiring a gpio for the first time */
1062 set_gpio_polar(gpio, 0);
1063 }
1064#endif
1059 1065
1060 reserved_gpio_map[gpio_bank(gpio)] |= gpio_bit(gpio); 1066 reserved_gpio_map[gpio_bank(gpio)] |= gpio_bit(gpio);
1061 set_label(gpio, label); 1067 set_label(gpio, label);