diff options
| author | Hans de Goede <[email protected]> | 2017-06-23 07:26:13 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2017-06-29 12:55:08 +0000 |
| commit | c06632ea054c49510efacb42c52aab693c45b7ba (patch) | |
| tree | 2812bbdf3279ca1062fd6d06985d5bf77964f7fa /net/unix/af_unix.c | |
| parent | gpiolib: fix filtering out unwanted events (diff) | |
| download | kernel-c06632ea054c49510efacb42c52aab693c45b7ba.tar.gz kernel-c06632ea054c49510efacb42c52aab693c45b7ba.zip | |
gpio: acpi: Skip _AEI entries without a handler rather then aborting the scan
acpi_walk_resources will stop as soon as the callback passed in returns
an error status. On a x86 tablet I have the first GpioInt in the _AEI
resource list has no handler defined in the DSDT, causing
acpi_walk_resources to abort scanning the rest of the resource list,
which does define valid ACPI GPIO events.
This commit changes the return for not finding a handler from
AE_BAD_PARAMETER to AE_OK so that the rest of the resource list will
get scanned normally in case of missing event handlers.
Signed-off-by: Hans de Goede <[email protected]>
Acked-by: Mika Westerberg <[email protected]>
Acked-by: Andy Shevchenko <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
