aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2022-02-11 19:15:00 +0100
committerThomas Gleixner <[email protected]>2022-03-02 22:28:51 +0100
commitff8dcfebe08dfb2524041116d4afce53ffe0b015 (patch)
tree949813d06a12fff7e3739b19884ef7bf8fe45a38
parentbfe6b967948c251955bcf175cb2d4e8d169102ca (diff)
staging: greybus: gpio: Use generic_handle_irq_safe().
Instead of manually disabling interrupts before invoking use generic_handle_irq_safe() which can be invoked with enabled and disabled interrupts. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Acked-by: Johan Hovold <[email protected]> Cc: Alex Elder <[email protected]> Cc: Rui Miguel Silva <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--drivers/staging/greybus/gpio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c
index 7e6347fe93f9..8a7cf1d0e968 100644
--- a/drivers/staging/greybus/gpio.c
+++ b/drivers/staging/greybus/gpio.c
@@ -391,10 +391,7 @@ static int gb_gpio_request_handler(struct gb_operation *op)
return -EINVAL;
}
- local_irq_disable();
- ret = generic_handle_irq(irq);
- local_irq_enable();
-
+ ret = generic_handle_irq_safe(irq);
if (ret)
dev_err(dev, "failed to invoke irq handler\n");