提交 95e827a1 编写于 作者: C Christophe Leroy 提交者: Bartosz Golaszewski

gpio: davinci: Stop using ARCH_NR_GPIOS

Since commit 14e85c0e ("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: NChristophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: NBartosz Golaszewski <bartosz.golaszewski@linaro.org>
上级 95b39792
...@@ -217,9 +217,6 @@ static int davinci_gpio_probe(struct platform_device *pdev) ...@@ -217,9 +217,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
return -EINVAL; return -EINVAL;
} }
if (WARN_ON(ARCH_NR_GPIOS < ngpio))
ngpio = ARCH_NR_GPIOS;
/* /*
* If there are unbanked interrupts then the number of * If there are unbanked interrupts then the number of
* interrupts is equal to number of gpios else all are banked so * interrupts is equal to number of gpios else all are banked so
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册