mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
M28: Fix OB1 bug in GPIO driver
This patch fixes a small off-by-one bug in the GPIO driver for the mxs platform that allowed the selection gpio pins of one bank more than the SoC actually has. Signed-off-by: Robert Deliën <robert at delien.nl> Acked-by: Marek Vasut <marek.vasut@gmail.com> Acked-by: Marek Vasut <marek.vasut@gmail.com>
This commit is contained in:
parent
aa72e43bb7
commit
5a42cd33d5
@ -120,7 +120,7 @@ int gpio_direction_output(int gp, int value)
|
|||||||
|
|
||||||
int gpio_request(int gp, const char *label)
|
int gpio_request(int gp, const char *label)
|
||||||
{
|
{
|
||||||
if (PAD_BANK(gp) > PINCTRL_BANKS)
|
if (PAD_BANK(gp) >= PINCTRL_BANKS)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user