Re: [PATCH] gpio / ACPI: fix returned error from acpi_dev_gpio_irq_get()

From: Linus Walleij
Date: Thu Oct 20 2016 - 08:15:50 EST


On Wed, Oct 12, 2016 at 6:40 PM, Benjamin Tissoires
<benjamin.tissoires@xxxxxxxxxx> wrote:

> From: David Arcari <darcari@xxxxxxxxxx>
>
> acpi_dev_gpio_irq_get() currently ignores the error returned
> by acpi_get_gpiod_by_index() and overwrites it with -ENOENT.
>
> Problem is this error can be -EPROBE_DEFER, which just blows
> up some drivers when the module ordering is not correct.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: David Arcari <darcari@xxxxxxxxxx>
> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>

Patch applied for fixes with Mika's ACK.

Yours,
Linus Walleij