Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7613aab authored by Michael Hennerich's avatar Michael Hennerich Committed by Bryan Wu
Browse files

Blackfin arch: As Mike pointed out range goes form m..MAX_BLACKFIN_GPIO -1

parent 00163e86
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ static unsigned int sic_iwr_irqs[gpio_bank(MAX_BLACKFIN_GPIOS)] = {IRQ_PROG0_INT

inline int check_gpio(unsigned short gpio)
{
	if (gpio > MAX_BLACKFIN_GPIOS)
	if (gpio >= MAX_BLACKFIN_GPIOS)
		return -EINVAL;
	return 0;
}