diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2021-09-25 03:25:46 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2021-09-25 03:31:51 +0000 |
| commit | d3a8f98acbf51e728411f10c5f179a30b9ca683c (patch) | |
| tree | 1d1520a2bf32982ad23fc23177ddfd567307bb68 /sys/dev/amdtemp | |
| parent | 0a35c4b3cab563e3ab1bf5b7b49bf26e0bb7cb04 (diff) | |
Diffstat (limited to 'sys/dev/amdtemp')
| -rw-r--r-- | sys/dev/amdtemp/amdtemp.c | 3 |
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"); } |
