git: 9dd865a59edd - main - apei_detach: fix swi_remove parameter

From: Eric van Gyzen <vangyzen_at_FreeBSD.org>
Date: Sat, 04 Oct 2025 20:24:22 UTC
The branch main has been updated by vangyzen:

URL: https://cgit.FreeBSD.org/src/commit/?id=9dd865a59edda38e6a379c5081e9483a87abc1eb

commit 9dd865a59edda38e6a379c5081e9483a87abc1eb
Author:     Eric van Gyzen <vangyzen@FreeBSD.org>
AuthorDate: 2025-10-04 15:18:05 +0000
Commit:     Eric van Gyzen <vangyzen@FreeBSD.org>
CommitDate: 2025-10-04 15:20:01 +0000

    apei_detach: fix swi_remove parameter
    
    swi_remove expects a void *, but we were passing void **.
    
    MFC after:      1 week
    Sponsored by:   Dell Inc.
---
 sys/dev/acpica/acpi_apei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/acpica/acpi_apei.c b/sys/dev/acpica/acpi_apei.c
index 9cfd46c97430..624c81ad1b4f 100644
--- a/sys/dev/acpica/acpi_apei.c
+++ b/sys/dev/acpica/acpi_apei.c
@@ -754,7 +754,7 @@ apei_detach(device_t dev)
 	apei_nmi = NULL;
 	apei_nmi_nges = NULL;
 	if (sc->nges.swi_ih != NULL) {
-		swi_remove(&sc->nges.swi_ih);
+		swi_remove(sc->nges.swi_ih);
 		sc->nges.swi_ih = NULL;
 	}
 	if (acpi_get_handle(dev) != NULL) {