summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/gpio.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2015-09-29 20:39:17 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2015-09-30 08:17:49 +0200
commit4ee144170a74c990eea2ccec46ab438bc233d2d8 (patch)
tree424891ef51a346c7b2a15250ce5afc4402ae0110 /drivers/staging/greybus/gpio.c
parent6ab1ce4d542ea1b5ffa40321e021d95de47880ea (diff)
greybus: gpio: handle api change in generic_handle_irq_desc()
generic_handle_irq_desc changed the api in the 4.2 kernel, so fix up the gpio driver to handle this properly to keep it working. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/gpio.c')
-rw-r--r--drivers/staging/greybus/gpio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c
index 6a04a1be573a..c41812ad7415 100644
--- a/drivers/staging/greybus/gpio.c
+++ b/drivers/staging/greybus/gpio.c
@@ -384,7 +384,11 @@ static int gb_gpio_request_recv(u8 type, struct gb_operation *op)
}
local_irq_disable();
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0)
generic_handle_irq_desc(irq, desc);
+#else
+ generic_handle_irq_desc(desc);
+#endif
local_irq_enable();
return 0;