aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/amdtemp
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-07-25 04:22:58 +0000
committerWarner Losh <imp@FreeBSD.org>2024-07-25 04:22:58 +0000
commit5b56413d04e608379c9a306373554a8e4d321bc0 (patch)
treec9151d7d1f89e0d4d84120695ab396078fef3ad5 /sys/dev/amdtemp
parent29d13f3d06dec06a2fc9636ca8308c0462f80cfc (diff)
Diffstat (limited to 'sys/dev/amdtemp')
-rw-r--r--sys/dev/amdtemp/amdtemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c
index 56772432773e..9ff7388fd70c 100644
--- a/sys/dev/amdtemp/amdtemp.c
+++ b/sys/dev/amdtemp/amdtemp.c
@@ -280,7 +280,7 @@ amdtemp_identify(driver_t *driver, device_t parent)
return;
if (amdtemp_match(parent, NULL)) {
- child = device_add_child(parent, "amdtemp", -1);
+ child = device_add_child(parent, "amdtemp", DEVICE_UNIT_ANY);
if (child == NULL)
device_printf(parent, "add amdtemp child failed\n");
}