gpio: max77620: Fix missing release of interrupt
authorDmitry Osipenko <digetx@gmail.com>
Thu, 9 Jul 2020 17:11:59 +0000 (20:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Aug 2020 13:35:34 +0000 (15:35 +0200)
commit5cca11ebb504fe17de1a111b07317789fdab5da7
treeb636fe28ccc0fda32d0160897c88e01cb10c320f
parent02c1ba9a22a177f05e6939ffe3aaba52a1cbb736
gpio: max77620: Fix missing release of interrupt

commit 2a5e6f7eede8cd1c4bac0b8ec6491cec4e75c99a upstream.

The requested interrupt is never released by the driver. Fix this by
using the resource-managed variant of request_threaded_irq().

Fixes: ab3dd9cc24d4 ("gpio: max77620: Fix interrupt handling")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Cc: <stable@vger.kernel.org> # 5.5+
Link: https://lore.kernel.org/r/20200709171203.12950-3-digetx@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpio/gpio-max77620.c