aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-davinci.c
diff options
context:
space:
mode:
authorChristophe Leroy <[email protected]>2022-09-02 12:42:03 +0000
committerBartosz Golaszewski <[email protected]>2022-10-17 09:02:44 +0000
commit95e827a1b0b7c8334d24da7b4a2d17ec5aa7374c (patch)
treec5695807e8d4f842ae16ec5ccc0f5d9462155cba /drivers/gpio/gpio-davinci.c
parentgpio: aggregator: Stop using ARCH_NR_GPIOS (diff)
downloadkernel-95e827a1b0b7c8334d24da7b4a2d17ec5aa7374c.tar.gz
kernel-95e827a1b0b7c8334d24da7b4a2d17ec5aa7374c.zip
gpio: davinci: Stop using ARCH_NR_GPIOS
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 <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-davinci.c')
-rw-r--r--drivers/gpio/gpio-davinci.c3
1 files changed, 0 insertions, 3 deletions
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