]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: sifive: Fix SiFive gpio probe
authorDamien Le Moal <damien.lemoal@wdc.com>
Sat, 7 Nov 2020 08:13:57 +0000 (17:13 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:28 +0000 (19:22 +0100)
commit02bae88e2c2df48da0407319f8161ca40cb01628
treed860248f053bb6f69b8dd203165d3ef9bb4c13f0
parent7e88d5dfc6b55fa6f17786847cdb2a2e11b83ebc
gpio: sifive: Fix SiFive gpio probe

commit b72de3ff19fdc4bbe4d4bb3f4483c7e46e00bac3 upstream.

Fix the check on the number of IRQs to allow up to the maximum (32)
instead of only the maximum minus one.

Fixes: 96868dce644d ("gpio/sifive: Add GPIO driver for SiFive SoCs")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Link: https://lore.kernel.org/r/20201107081420.60325-10-damien.lemoal@wdc.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-sifive.c