gpio: ath79: set ngpio from platform data
Subsystems (2)
PATCH 2/2 gpio: ath79: set ngpio from platform data
The number of GPIOs defaults to 32 for all ath79 platforms spite the code is checking the number of GPIOs from platform data. Set ngpio to the number of GPIOs obtained previously.
Signed-off-by Daniel Gonzalez Cabanelas <[email protected]>
drivers/gpio/gpio-ath79.c +1 -0
@@ -274,6 +274,7 @@ static int ath79_gpio_probe(struct platform_device *pdev) }/* Use base 0 to stay compatible with legacy platforms */ ctrl->gc.base =0 ; + ctrl->gc.ngpio = ath79_gpio_count; err =gpiochip_add_data (&ctrl->gc, ctrl);if (err) {