Message ID | 6171392f1c2f7afc1c96d4b3ef8cf8d25cb416d2.1661789204.git.christophe.leroy@csgroup.eu |
---|---|
State | Superseded |
Headers | show |
Series | gpio: Get rid of ARCH_NR_GPIOS (v1) | expand |
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 59c4c48d8296..1018860c83c2 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -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
Since commit 14e85c0e69d5 ("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> --- drivers/gpio/gpio-davinci.c | 3 --- 1 file changed, 3 deletions(-)