 c06fb25d1f
			
		
	
	c06fb25d1f
	
	
		
			
	
		
	
	
		
			Some checks failed
		
		
	
	Build Kernel / Build all affected Kernels (push) Has been cancelled
				
			Build all core packages / Build all core packages for selected target (push) Has been cancelled
				
			Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
				
			Build Toolchains / Build Toolchains for each target (push) Has been cancelled
				
			Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
				
			Coverity scan build / Coverity x86/64 build (push) Has been cancelled
				
			
		
			
				
	
	
		
			33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 9a473c2a093e0d1c466bf86073230e2c8b658977 Mon Sep 17 00:00:00 2001
 | |
| From: Shiji Yang <yangshiji66@outlook.com>
 | |
| Date: Wed, 26 Jun 2024 08:33:18 +0800
 | |
| Subject: 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 <yangshiji66@outlook.com>
 | |
| Suggested-by: Jonas Gorski <jonas.gorski@gmail.com>
 | |
| Link: https://lore.kernel.org/r/TYCP286MB089598EA71E964BD8AB9EFD3BCD62@TYCP286MB0895.JPNP286.PROD.OUTLOOK.COM
 | |
| [Bartosz: tweaked the commit message]
 | |
| Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
 | |
| ---
 | |
|  drivers/gpio/gpio-ath79.c | 2 --
 | |
|  1 file changed, 2 deletions(-)
 | |
| 
 | |
| --- a/drivers/gpio/gpio-ath79.c
 | |
| +++ b/drivers/gpio/gpio-ath79.c
 | |
| @@ -273,8 +273,6 @@ static int ath79_gpio_probe(struct platf
 | |
|  		dev_err(dev, "bgpio_init failed\n");
 | |
|  		return err;
 | |
|  	}
 | |
| -	/* Use base 0 to stay compatible with legacy platforms */
 | |
| -	ctrl->gc.base = 0;
 | |
|  
 | |
|  	/* Optional interrupt setup */
 | |
|  	if (!np || of_property_read_bool(np, "interrupt-controller")) {
 |