gpio / ACPI: fix returned error from acpi_dev_gpio_irq_get()
authorDavid Arcari <darcari@redhat.com>
Wed, 12 Oct 2016 16:40:30 +0000 (18:40 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 20 Oct 2016 12:15:01 +0000 (14:15 +0200)
commit67bf5156edc4f58241fd7c119ae145c552adddd6
tree366bf61d4853fd14ec505a9d5cfd7ae7dad71d89
parent0cb940927df72a514588d8286916eda4aaa4d011
gpio / ACPI: fix returned error from acpi_dev_gpio_irq_get()

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@vger.kernel.org
Signed-off-by: David Arcari <darcari@redhat.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c