aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/amdsmn
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-07-25 04:22:58 +0000
committerWarner Losh <imp@FreeBSD.org>2024-07-25 04:22:58 +0000
commit5b56413d04e608379c9a306373554a8e4d321bc0 (patch)
treec9151d7d1f89e0d4d84120695ab396078fef3ad5 /sys/dev/amdsmn
parent29d13f3d06dec06a2fc9636ca8308c0462f80cfc (diff)
Diffstat (limited to 'sys/dev/amdsmn')
-rw-r--r--sys/dev/amdsmn/amdsmn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/amdsmn/amdsmn.c b/sys/dev/amdsmn/amdsmn.c
index d657ab84924a..cb2ddbd86c2e 100644
--- a/sys/dev/amdsmn/amdsmn.c
+++ b/sys/dev/amdsmn/amdsmn.c
@@ -176,7 +176,7 @@ amdsmn_identify(driver_t *driver, device_t parent)
if (!amdsmn_match(parent, NULL))
return;
- child = device_add_child(parent, "amdsmn", -1);
+ child = device_add_child(parent, "amdsmn", DEVICE_UNIT_ANY);
if (child == NULL)
device_printf(parent, "add amdsmn child failed\n");
}