mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	MIPS: bcm63xx: switch to gpiochip_add_data()
We're planning to remove the gpiochip_add() function to swith to gpiochip_add_data() with NULL for data argument. Cc: linux-mips@linux-mips.org Acked-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
		
							parent
							
								
									1b2766fb49
								
							
						
					
					
						commit
						6483d82920
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -11,7 +11,7 @@ | |||
| #include <linux/module.h> | ||||
| #include <linux/spinlock.h> | ||||
| #include <linux/platform_device.h> | ||||
| #include <linux/gpio.h> | ||||
| #include <linux/gpio/driver.h> | ||||
| 
 | ||||
| #include <bcm63xx_cpu.h> | ||||
| #include <bcm63xx_gpio.h> | ||||
|  | @ -147,5 +147,5 @@ int __init bcm63xx_gpio_init(void) | |||
| 	bcm63xx_gpio_chip.ngpio = bcm63xx_gpio_count(); | ||||
| 	pr_info("registering %d GPIOs\n", bcm63xx_gpio_chip.ngpio); | ||||
| 
 | ||||
| 	return gpiochip_add(&bcm63xx_gpio_chip); | ||||
| 	return gpiochip_add_data(&bcm63xx_gpio_chip, NULL); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Linus Walleij
						Linus Walleij