]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
greybus: gpio: handle api change in generic_handle_irq_desc()
authorGreg Kroah-Hartman <gregkh@google.com>
Tue, 29 Sep 2015 18:39:17 +0000 (20:39 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 30 Sep 2015 06:17:49 +0000 (08:17 +0200)
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>
drivers/staging/greybus/gpio.c

index 6a04a1be573a6d86ee9ac17faa8a401e20fe39cd..c41812ad7415149db35d0043d74546513d6850e6 100644 (file)
@@ -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;