]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Nov 2020 08:53:09 +0000 (09:53 +0100)
commit5666614b81d831f00d7cffd15ec301b624eb0fdf
treefd140c35ccfefce381cb4acf5188b340248f6216
parent3f139e9a1fd3b495c113140336caa6f8764f8af8
gpio: sifive: Fix SiFive gpio probe

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

Fixes: 5b9c9efece06 ("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>
drivers/gpio/gpio-sifive.c