From: Rui Miguel Silva Date: Wed, 30 Sep 2015 10:11:57 +0000 (+0100) Subject: greybus: gpio: fix generic_handle_irq_desc api change X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~1153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c9426ad27840e2d1175e3b090cba98f539c10c6;p=platform%2Fkernel%2Flinux-rpi.git greybus: gpio: fix generic_handle_irq_desc api change The generic_handle_irq_desc api only have changed in 4.3.0, so check against the correct version, if not will break builds for 4.2.x. Fixes: e7895cfc476 ("gpio: handle api change in generic_handle_irq_desc()") Signed-off-by: Rui Miguel Silva Reviewed-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c index c41812a..6c653ad 100644 --- a/drivers/staging/greybus/gpio.c +++ b/drivers/staging/greybus/gpio.c @@ -384,7 +384,7 @@ static int gb_gpio_request_recv(u8 type, struct gb_operation *op) } local_irq_disable(); -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 2, 0) +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) generic_handle_irq_desc(irq, desc); #else generic_handle_irq_desc(desc);