git: 5a84b710a9b2 - main - acpi_acad: Use devclass_find to find the acpi_acad devclass.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Apr 2022 17:29:55 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5a84b710a9b29e317e11dd795ed3983b06ac32b0 commit 5a84b710a9b29e317e11dd795ed3983b06ac32b0 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-21 17:29:13 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-21 17:29:13 +0000 acpi_acad: Use devclass_find to find the acpi_acad devclass. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34986 --- sys/dev/acpica/acpi_acad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/acpica/acpi_acad.c b/sys/dev/acpica/acpi_acad.c index ac7ff1315734..75e0d7803bad 100644 --- a/sys/dev/acpica/acpi_acad.c +++ b/sys/dev/acpica/acpi_acad.c @@ -260,7 +260,7 @@ static void acpi_acad_ac_only(void __unused *arg) { - if (devclass_get_count(acpi_acad_devclass) == 0) + if (devclass_get_count(devclass_find("acpi_acad")) == 0) acpi_UserNotify("ACAD", ACPI_ROOT_OBJECT, 1); } @@ -273,7 +273,7 @@ acpi_acad_get_acline(int *status) struct acpi_acad_softc *sc; device_t dev; - dev = devclass_get_device(acpi_acad_devclass, 0); + dev = devclass_get_device(devclass_find("acpi_acad"), 0); if (dev == NULL) return (ENXIO); sc = device_get_softc(dev);