diff options
| author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-06-11 00:25:08 +0000 |
|---|---|---|
| committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-06-21 02:57:45 +0000 |
| commit | b670c9bafc0e31c7609969bf374b2e80bdc00211 (patch) | |
| tree | a43fdc9e5b58d1ab4cddbf535c3855d7a32de4dc /sys/dev/efidev | |
| parent | 220cdd1b394109a5db9e5b402141c746095c4292 (diff) | |
Diffstat (limited to 'sys/dev/efidev')
| -rw-r--r-- | sys/dev/efidev/efirtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/efidev/efirtc.c b/sys/dev/efidev/efirtc.c index a7baff673c1c..69d2c0b1af9f 100644 --- a/sys/dev/efidev/efirtc.c +++ b/sys/dev/efidev/efirtc.c @@ -52,9 +52,9 @@ efirtc_identify(driver_t *driver, device_t parent) /* Don't add the driver unless we have working runtime services. */ if (efi_rt_ok() != 0) return; - if (device_find_child(parent, "efirtc", -1) != NULL) + if (device_find_child(parent, "efirtc", DEVICE_UNIT_ANY) != NULL) return; - if (BUS_ADD_CHILD(parent, 0, "efirtc", -1) == NULL) + if (BUS_ADD_CHILD(parent, 0, "efirtc", DEVICE_UNIT_ANY) == NULL) device_printf(parent, "add child failed\n"); } |
