summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_ste.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_ste.c')
-rw-r--r--sys/pci/if_ste.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/if_ste.c b/sys/pci/if_ste.c
index 931c769..3bf8b33 100644
--- a/sys/pci/if_ste.c
+++ b/sys/pci/if_ste.c
@@ -1027,8 +1027,7 @@ ste_attach(dev)
ifp = &sc->arpcom.ac_if;
ifp->if_softc = sc;
- ifp->if_unit = unit;
- ifp->if_name = "ste";
+ if_initname(ifp, device_get_name(dev), device_get_unit(dev));
ifp->if_mtu = ETHERMTU;
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ifp->if_ioctl = ste_ioctl;
OpenPOWER on IntegriCloud