Skip to content
Snippets Groups Projects
Commit 5da2e0cc authored by Sander Vanheule's avatar Sander Vanheule Committed by Stijn Tintel
Browse files

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: default avatarSander Vanheule <sander@svanheule.net>
Tested-by: default avatarStijn Tintel <stijn@linux-ipv6.be>
parent 851212a7
No related branches found
No related tags found
No related merge requests found
...@@ -311,7 +311,7 @@ static int rtl8231_gpio_probe(struct platform_device *pdev) ...@@ -311,7 +311,7 @@ static int rtl8231_gpio_probe(struct platform_device *pdev)
rtl8231_init(gpios); rtl8231_init(gpios);
gpios->dev = dev; gpios->dev = dev;
gpios->gc.base = 160; gpios->gc.base = -1;
gpios->gc.ngpio = 37; gpios->gc.ngpio = 37;
gpios->gc.label = "rtl8231"; gpios->gc.label = "rtl8231";
gpios->gc.parent = dev; gpios->gc.parent = dev;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment