Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Mar 2026 14:55:48 +0000
From:      Olivier Certner <olce@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c78937677c97 - main - DEVICE_IDENTIFY.9: Fix function call to detect driver in example code
Message-ID:  <69c69a74.211a4.40b1c7fb@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by olce:

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

commit c78937677c973c48fd438ea06cfb51e11cc62851
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-03-27 14:46:58 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-03-27 14:55:13 +0000

    DEVICE_IDENTIFY.9: Fix function call to detect driver in example code
    
    Fixes:          ccabc7c2e556 ("DEVICE_IDENTIFY.9: Modernize description and use cases")
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
---
 share/man/man9/DEVICE_IDENTIFY.9 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/man/man9/DEVICE_IDENTIFY.9 b/share/man/man9/DEVICE_IDENTIFY.9
index 31063ae60dff..564699b57a58 100644
--- a/share/man/man9/DEVICE_IDENTIFY.9
+++ b/share/man/man9/DEVICE_IDENTIFY.9
@@ -74,7 +74,7 @@ foo_identify(driver_t *driver, device_t parent)
 
 	retrieve_device_information;
 	if (devices matches one of your supported devices &&
-	    device_get_child(parent, "foo", DEVICE_UNIT_ANY) == NULL) {
+	    device_find_child(parent, "foo", DEVICE_UNIT_ANY) == NULL) {
 		child = BUS_ADD_CHILD(parent, 0, "foo", DEVICE_UNIT_ANY);
 		bus_set_resource(child, SYS_RES_IOPORT, 0, FOO_IOADDR, 1);
 	}


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69c69a74.211a4.40b1c7fb>