diff options
author | Sander Vanheule <sander@svanheule.net> | 2021-11-20 20:11:31 +0100 |
---|---|---|
committer | Stijn Tintel <stijn@linux-ipv6.be> | 2022-02-17 19:11:17 +0200 |
commit | 851212a71454735ebabf401d07845a642700e11e (patch) | |
tree | 4499d79120f21fda7e85faa0e2fbe39425c91759 /target/linux/realtek | |
parent | eef7f17652001ce7c087b8576c0021494a0e7e7e (diff) | |
download | upstream-851212a71454735ebabf401d07845a642700e11e.tar.gz upstream-851212a71454735ebabf401d07845a642700e11e.tar.bz2 upstream-851212a71454735ebabf401d07845a642700e11e.zip |
realtek: fix RTL8231 gpio count
The RTL8231's gpio_chip.ngpio was set to 36, which is the largest valid
GPIO index. Fix the allowed number of GPIOs by setting ngpio to 37, the
actual line count.
Reported-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'target/linux/realtek')
-rw-r--r-- | target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c b/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c index f4f5621e0c..f06c2d81df 100644 --- a/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c +++ b/target/linux/realtek/files-5.10/drivers/gpio/gpio-rtl8231.c @@ -312,7 +312,7 @@ static int rtl8231_gpio_probe(struct platform_device *pdev) gpios->dev = dev; gpios->gc.base = 160; - gpios->gc.ngpio = 36; + gpios->gc.ngpio = 37; gpios->gc.label = "rtl8231"; gpios->gc.parent = dev; gpios->gc.owner = THIS_MODULE; |