Commit 4ee14417 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 6ab1ce4d
...@@ -384,7 +384,11 @@ static int gb_gpio_request_recv(u8 type, struct gb_operation *op) ...@@ -384,7 +384,11 @@ 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)
generic_handle_irq_desc(irq, desc); generic_handle_irq_desc(irq, desc);
#else
generic_handle_irq_desc(desc);
#endif
local_irq_enable(); local_irq_enable();
return 0; return 0;
......
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