Skip to contentSkip to conversation

blackfin arch: fix bug asserting gpio requested doesnt make sense with GPIO whole PORT accesses

PATCH New Wu, Bryan 1 participant 1 message Apr 5, 2007

lore
Share & tools
lore

Wu, Bryan

author
#0 lore raw

PATCH 1/1 blackfin arch: fix bug asserting gpio requested doesnt make sense with GPIO whole PORT accesses

[PATCH] blackfin arch:
A BUG_ON will fire in the STAMP533 board when enable ethernet support. This BUG_ON asserting is useless in the whole PORT accesses. So remove it.

---
 arch/blackfin/kernel/bfin_gpio.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
arch/blackfin/kernel/bfin_gpio.c +0 -2
index bb71aaf..e9f24a9 100644
@@ -316,7 +316,6 @@ SET_GPIO_P(maskb)
 void set_gpiop_data(unsigned short gpio, unsigned short arg)
 {
 	unsigned long flags;
-	BUG_ON(!(reserved_map[gpio_bank(gpio)] & gpio_bit(gpio)));
 	local_irq_save(flags);
 	gpio_bankb[gpio_bank(gpio)]->data = arg;
 	bfin_read_CHIPID();
@@ -386,7 +385,6 @@ unsigned short get_gpiop_data(unsigned short gpio)
 {
 	unsigned long flags;
 	unsigned short ret;
-	BUG_ON(!(reserved_map[gpio_bank(gpio)] & gpio_bit(gpio)));
 	local_irq_save(flags);
 	ret = gpio_bankb[gpio_bank(gpio)]->data;
 	bfin_read_CHIPID();
Signature · 1 line
1.5.0.5