DEVICE_IDENTIFY.9: Fix function call to detect driver in example code

Fixes:          ccabc7c2e5 ("DEVICE_IDENTIFY.9: Modernize description and use cases")
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
This commit is contained in:
Olivier Certner committed 2026-03-27 15:55:13 +01:00
1 parent 18ce9e2dd0
commit c78937677c
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}