]> asedeno.scripts.mit.edu Git - linux.git/commit
gpio: lynxpoint: Setup correct IRQ handlers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 18 Nov 2019 18:02:51 +0000 (20:02 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Nov 2019 14:01:57 +0000 (15:01 +0100)
commite272f7ec070d212b9301d5a465bc8952f8dcf908
treed715cf122ba4e17e49fefa0b002aa877796a44dc
parent20e5a163b8df0e1fc02c574008e3a6e0d21849bc
gpio: lynxpoint: Setup correct IRQ handlers

When commit 75e99bf5ed8f ("gpio: lynxpoint: set default handler to be
handle_bad_irq()") switched default handler to be handle_bad_irq() the
lp_irq_type() function remained untouched. It means that even request_irq()
can't change the handler and we are not able to handle IRQs properly anymore.
Fix it by setting correct handlers in the lp_irq_type() callback.

Fixes: 75e99bf5ed8f ("gpio: lynxpoint: set default handler to be handle_bad_irq()")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20191118180251.31439-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-lynxpoint.c