aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/neta
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/neta
parent29d13f3d06dec06a2fc9636ca8308c0462f80cfc (diff)
Diffstat (limited to 'sys/dev/neta')
-rw-r--r--sys/dev/neta/if_mvneta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/neta/if_mvneta.c b/sys/dev/neta/if_mvneta.c
index 053e959c94ac..e663306509a0 100644
--- a/sys/dev/neta/if_mvneta.c
+++ b/sys/dev/neta/if_mvneta.c
@@ -801,7 +801,7 @@ mvneta_attach(device_t self)
if (mvneta_has_switch(self)) {
if (bootverbose)
device_printf(self, "This device is attached to a switch\n");
- child = device_add_child(sc->dev, "mdio", -1);
+ child = device_add_child(sc->dev, "mdio", DEVICE_UNIT_ANY);
if (child == NULL) {
ether_ifdetach(sc->ifp);
mvneta_detach(self);