Module Name: src
Committed By: jmcneill
Date: Tue Oct 23 09:19:02 UTC 2018
Modified Files:
src/sys/dev/acpi: plgpio_acpi.c
Log Message:
Do not complain if the _AEI method is not found, just skip installing the
interrupt handler.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/acpi/plgpio_acpi.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/acpi/plgpio_acpi.c
diff -u src/sys/dev/acpi/plgpio_acpi.c:1.3 src/sys/dev/acpi/plgpio_acpi.c:1.4
--- src/sys/dev/acpi/plgpio_acpi.c:1.3 Mon Oct 22 22:29:35 2018
+++ src/sys/dev/acpi/plgpio_acpi.c Tue Oct 23 09:19:02 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: plgpio_acpi.c,v 1.3 2018/10/22 22:29:35 jmcneill Exp $ */
+/* $NetBSD: plgpio_acpi.c,v 1.4 2018/10/23 09:19:02 jmcneill Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: plgpio_acpi.c,v 1.3 2018/10/22 22:29:35 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: plgpio_acpi.c,v 1.4 2018/10/23 09:19:02 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -123,8 +123,10 @@ plgpio_acpi_attach(device_t parent, devi
plgpio_attach(sc);
- if (ACPI_FAILURE(acpi_event_create_gpio(self, asc->sc_handle, plgpio_acpi_register_event, asc))) {
- aprint_error_dev(self, "failed to create events\n");
+ rv = acpi_event_create_gpio(self, asc->sc_handle, plgpio_acpi_register_event, asc);
+ if (ACPI_FAILURE(rv)) {
+ if (rv != AE_NOT_FOUND)
+ aprint_error_dev(self, "failed to create events: %s\n", AcpiFormatException(rv));
goto done;
}