mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 03:06:35 +00:00
realtek: use automatic GPIO numbering for RTL8231
Set the gpio_chip.base to -1 to use automatic GPIO line indexing. Setting base to 0 or a positive number is deprecated and should not be used. Signed-off-by: Sander Vanheule <sander@svanheule.net> Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
This commit is contained in:
parent
851212a714
commit
5da2e0cc20
@ -311,7 +311,7 @@ static int rtl8231_gpio_probe(struct platform_device *pdev)
|
||||
rtl8231_init(gpios);
|
||||
|
||||
gpios->dev = dev;
|
||||
gpios->gc.base = 160;
|
||||
gpios->gc.base = -1;
|
||||
gpios->gc.ngpio = 37;
|
||||
gpios->gc.label = "rtl8231";
|
||||
gpios->gc.parent = dev;
|
||||
|
Loading…
Reference in New Issue
Block a user