Skip to content

Commit 9a473c2

Browse files
DragonBluepBartosz Golaszewski
authored andcommitted
gpio: ath79: convert to dynamic GPIO base allocation
ath79 target has already been converted to device tree based platform. Use dynamic GPIO numberspace base to suppress the warning: gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. Tested on Atheros AR7241 and AR9344. Signed-off-by: Shiji Yang <[email protected]> Suggested-by: Jonas Gorski <[email protected]> Link: https://lore.kernel.org/r/TYCP286MB089598EA71E964BD8AB9EFD3BCD62@TYCP286MB0895.JPNP286.PROD.OUTLOOK.COM [Bartosz: tweaked the commit message] Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 8657af6 commit 9a473c2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/gpio/gpio-ath79.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ static int ath79_gpio_probe(struct platform_device *pdev)
273273
dev_err(dev, "bgpio_init failed\n");
274274
return err;
275275
}
276-
/* Use base 0 to stay compatible with legacy platforms */
277-
ctrl->gc.base = 0;
278276

279277
/* Optional interrupt setup */
280278
if (!np || of_property_read_bool(np, "interrupt-controller")) {

0 commit comments

Comments
 (0)