Commit 3c9426ad authored by Rui Miguel Silva's avatar Rui Miguel Silva Committed by Greg Kroah-Hartman

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: default avatarRui Miguel Silva <rui.silva@linaro.org>
Reviewed-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 4ee14417
...@@ -384,7 +384,7 @@ static int gb_gpio_request_recv(u8 type, struct gb_operation *op) ...@@ -384,7 +384,7 @@ static int gb_gpio_request_recv(u8 type, struct gb_operation *op)
} }
local_irq_disable(); 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); generic_handle_irq_desc(irq, desc);
#else #else
generic_handle_irq_desc(desc); generic_handle_irq_desc(desc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment