aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/amdtemp
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-12-02 22:45:04 +0000
committerCy Schubert <cy@FreeBSD.org>2021-12-02 22:45:04 +0000
commitdb0ac6ded61105caab4700aeac255328d4238dc4 (patch)
tree1ecb794fd4e9d2076de2fdd040b4fe0335f2b89e /sys/dev/amdtemp
parent266f97b5e9a7958e365e78288616a459b40d924a (diff)
Diffstat (limited to 'sys/dev/amdtemp')
-rw-r--r--sys/dev/amdtemp/amdtemp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/amdtemp/amdtemp.c b/sys/dev/amdtemp/amdtemp.c
index c1d696d070a5..21227a47c513 100644
--- a/sys/dev/amdtemp/amdtemp.c
+++ b/sys/dev/amdtemp/amdtemp.c
@@ -263,8 +263,7 @@ amdtemp_identify(driver_t *driver, device_t parent)
return;
if (amdtemp_match(parent, NULL)) {
- child = device_add_child(parent, "amdtemp",
- device_get_unit(parent));
+ child = device_add_child(parent, "amdtemp", -1);
if (child == NULL)
device_printf(parent, "add amdtemp child failed\n");
}