diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2021-12-02 21:35:14 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2021-12-02 21:35:14 +0000 |
| commit | 266f97b5e9a7958e365e78288616a459b40d924a (patch) | |
| tree | 47846fb735b2e0becce397e048f4a1d63f996a64 /sys/dev/amdtemp | |
| parent | a10253cffea84c0c980a36ba6776b00ed96c3e3b (diff) | |
| parent | 56f32b0e4cc24d58cae7613188c0b2dcf5ca4a94 (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"); } |
