The branch main has been updated by jhb:

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

commit 97c076d23715561576fbb316eaaf677f0c9812f7
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-04-21 17:29:13 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2022-04-21 17:29:13 +0000

    acpi_ec: Use device_get_devclass to find devclass in probe.
    
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D34989
---
 sys/dev/acpica/acpi_ec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/acpica/acpi_ec.c b/sys/dev/acpica/acpi_ec.c
index 2954791393a5..af6b5338c167 100644
--- a/sys/dev/acpica/acpi_ec.c
+++ b/sys/dev/acpica/acpi_ec.c
@@ -395,7 +395,7 @@ acpi_ec_probe(device_t dev)
      * checks DF_ENABLED at the start and so disabling it here is too late to
      * prevent device_attach() from being called.
      */
-    peer = devclass_get_device(acpi_ec_devclass, params->uid);
+    peer = devclass_get_device(device_get_devclass(dev), params->uid);
     if (peer != NULL && device_is_alive(peer)) {
        device_disable(dev);
        goto out;

Reply via email to