mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-15 20:12:00 -04:00
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: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user