git: 94a72c5ac428 - main - amdtemp: Revert related part of "Make CPU children" commit.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 01 Dec 2021 18:06:38 UTC
The branch main has been updated by mav: URL: https://cgit.FreeBSD.org/src/commit/?id=94a72c5ac4285b2940e5d2c7e53d21c84023defc commit 94a72c5ac4285b2940e5d2c7e53d21c84023defc Author: Alexander Motin <mav@FreeBSD.org> AuthorDate: 2021-12-01 18:00:17 +0000 Commit: Alexander Motin <mav@FreeBSD.org> CommitDate: 2021-12-01 18:04:31 +0000 amdtemp: Revert related part of "Make CPU children" commit. While it still looks like previous code worked by coincidence, this change broke things even more instead of fixing. Reported by: avg@ MFC after: 1 week --- sys/dev/amdtemp/amdtemp.c | 3 +-- 1 file changed, 1 insertion(+), 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"); }