From: Greg Kroah-Hartman Date: Tue, 29 Sep 2015 18:39:17 +0000 (+0200) Subject: greybus: gpio: handle api change in generic_handle_irq_desc() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ee144170a74c990eea2ccec46ab438bc233d2d8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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;