Skip to content

Commit

Permalink
gpio: davinci: Stop using ARCH_NR_GPIOS
Browse files Browse the repository at this point in the history
Since commit 14e85c0 ("gpio: remove gpio_descs global array")
there is no global limitation anymore on the number of GPIOs in
the system so don't clamp the number of GPIOs with ARCH_NR_GPIOS.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
  • Loading branch information
Christophe Leroy authored and Bartosz Golaszewski committed Oct 17, 2022
1 parent 95b3979 commit 95e827a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpio/gpio-davinci.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
return -EINVAL;
}

if (WARN_ON(ARCH_NR_GPIOS < ngpio))
ngpio = ARCH_NR_GPIOS;

/*
* If there are unbanked interrupts then the number of
* interrupts is equal to number of gpios else all are banked so
Expand Down

0 comments on commit 95e827a

Please sign in to comment.