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 <rui.silva@linaro.org> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
4ee144170a
commit
3c9426ad27
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user