Skip to content

Commit 95e827a

Browse files
chleroyBartosz Golaszewski
authored and
Bartosz Golaszewski
committed
gpio: davinci: Stop using ARCH_NR_GPIOS
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 <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 95b3979 commit 95e827a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpio/gpio-davinci.c

-3
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
217217
return -EINVAL;
218218
}
219219

220-
if (WARN_ON(ARCH_NR_GPIOS < ngpio))
221-
ngpio = ARCH_NR_GPIOS;
222-
223220
/*
224221
* If there are unbanked interrupts then the number of
225222
* interrupts is equal to number of gpios else all are banked so

0 commit comments

Comments
 (0)