summaryrefslogtreecommitdiff
path: root/sys/dev/amdtemp/amdtemp.c
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2021-09-25 03:25:46 +0000
committerAlexander Motin <mav@FreeBSD.org>2022-01-04 17:21:42 +0000
commitb7668d009e5343560109db7b004fed00c774589d (patch)
tree046559686fb73a76710306f88f3cfb4f17455c21 /sys/dev/amdtemp/amdtemp.c
parent083a2ff0f0328199bc79eee82e301c7896cb58ff (diff)
Diffstat (limited to 'sys/dev/amdtemp/amdtemp.c')
-rw-r--r--sys/dev/amdtemp/amdtemp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c
index 21227a47c513..c1d696d070a5 100644
--- a/sys/dev/amdtemp/amdtemp.c
+++ b/sys/dev/amdtemp/amdtemp.c
@@ -263,7 +263,8 @@ 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_get_unit(parent));
if (child == NULL)
device_printf(parent, "add amdtemp child failed\n");
}