git: dafac65367c9 - stable/15 - DEVICE_IDENTIFY.9: Fix function call to detect driver in example code

From: Olivier Certner <olce_at_FreeBSD.org>
Date: Mon, 30 Mar 2026 09:36:34 UTC
The branch stable/15 has been updated by olce:

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

commit dafac65367c9d28e8a836a1dbeaaadbd87cdfede
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-03-27 14:46:58 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-03-30 09:36:07 +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
    
    (cherry picked from commit c78937677c973c48fd438ea06cfb51e11cc62851)
---
 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);
 	}