]> asedeno.scripts.mit.edu Git - linux.git/commit
gpiolib: acpi: Make acpi_gpiochip_alloc_event always return AE_OK
authorHans de Goede <hdegoede@redhat.com>
Thu, 14 Nov 2019 10:26:00 +0000 (11:26 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 21 Nov 2019 13:35:48 +0000 (14:35 +0100)
commitd4fc46f1739d2e1a5c2a92a7b3e65f2426c9e9b5
treee0a4ec865833936811dea8f9f0368825a2ffa57f
parent787b64a43f7acacf8099329ea08872e663f1e74f
gpiolib: acpi: Make acpi_gpiochip_alloc_event always return AE_OK

acpi_gpiochip_alloc_event is used to loop over all _AEI resources, if
we fail to bind an event handler to one of them, that is not a reason to
not try the other resources.

This commit modifies acpi_gpiochip_alloc_event to always return AE_OK,
so that we will always try to add an event handler for all _AEI resources.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20191114102600.34558-2-hdegoede@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