summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2020-07-28 14:55:03 +0200
committerLinus Walleij <linus.walleij@linaro.org>2020-08-04 01:25:02 +0200
commita1cdaa64aab217a282fc3577f7c560ffaa75dcd0 (patch)
tree72a7e397a669c89400b6173b7e94a1ddea698915 /include
parentgpio: pca953x: Request IRQ after all initialisation done (diff)
downloadlinux-a1cdaa64aab217a282fc3577f7c560ffaa75dcd0.tar.xz
linux-a1cdaa64aab217a282fc3577f7c560ffaa75dcd0.zip
gpio: crystalcove: Free IRQ on error path
It appears that all, but request_irq(), calls in the driver are device managed. In unlikely case of devm_gpiochip_add_data() failure the IRQ left requested. Free IRQ on error path by switching to devm_request_threaded_irq() API. Byproduct of this change is a drop of ->remove() callback completely. Fixes: 945e72db36bd ("gpio: crystalcove: Use irqchip template") Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20200728125504.27786-2-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions