]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: acpi: Ignore -EPROBE_DEFER for unselected gpioints
authorHans de Goede <hdegoede@redhat.com>
Mon, 13 Mar 2017 22:04:21 +0000 (23:04 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Mar 2017 20:52:13 +0000 (21:52 +0100)
commit2b3050f2711fd3fe403ffd851dcd540406388f5e
tree515214dfc85e3bf535733907c1299cf0aa6c7555
parent0a00656a3a164947ee312e78dce27b3abf52a2e1
gpio: acpi: Ignore -EPROBE_DEFER for unselected gpioints

When acpi_dev_gpio_irq_get gets called with an index of say 2, it should
not care if acpi_get_gpiod for index 0 or 1 returns -EPROBE_DEFER.

This allows drivers which request a gpioint with index > 0 to function
if there is no gpiochip driver (loaded) for gpioints with a lower index.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c