From 4ee144170a74c990eea2ccec46ab438bc233d2d8 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 29 Sep 2015 20:39:17 +0200 Subject: [PATCH] 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 --- drivers/staging/greybus/gpio.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.11.0