The branch main has been updated by olce:

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

commit b82e41d394054fdc357bc9e03b9a48a2e6983a91
Author:     Olivier Certner <[email protected]>
AuthorDate: 2026-05-07 07:53:36 +0000
Commit:     Olivier Certner <[email protected]>
CommitDate: 2026-05-13 12:38:25 +0000

    acpi_spmc(4): Trivial simplification in detach function
    
    Reviewed by:    obiwac
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D56881
---
 sys/dev/acpica/acpi_spmc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/acpica/acpi_spmc.c b/sys/dev/acpica/acpi_spmc.c
index 244e7795ba84..b1f97685e50c 100644
--- a/sys/dev/acpica/acpi_spmc.c
+++ b/sys/dev/acpica/acpi_spmc.c
@@ -441,8 +441,7 @@ acpi_spmc_detach(device_t dev)
 
        EVENTHANDLER_DEREGISTER(acpi_post_dev_suspend, sc->eh_suspend);
        EVENTHANDLER_DEREGISTER(acpi_pre_dev_resume, sc->eh_resume);
-
-       acpi_spmc_free_constraints(device_get_softc(dev));
+       acpi_spmc_free_constraints(sc);
        return (0);
 }
 

Reply via email to