Re: [PATCH 2/2] HID: i2c-hid: exit if the IRQ is not valid
From: Mika Westerberg
Date: Thu Oct 13 2016 - 06:27:58 EST
On Thu, Oct 13, 2016 at 11:30:45AM +0200, Benjamin Tissoires wrote:
> From: David Arcari <darcari@xxxxxxxxxx>
> When i2c-core doesn't find the IRQ associated to the GPIO because
> the gpiochip is not available, it assigns -EPROBE_DEFER to the irq.
> We need to bail out there and on any other error in an IRQ.
> Signed-off-by: David Arcari <darcari@xxxxxxxxxx>
> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
Reviewed-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx>