aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/gx
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2003-10-31 18:32:15 +0000
committerBrooks Davis <brooks@FreeBSD.org>2003-10-31 18:32:15 +0000
commit9bf40ede4a299f315bc4b0ae5329631b8c7dc271 (patch)
tree4d9e6671d486576767506230a4240131526fea49 /sys/dev/gx
parentdc6279b887bf4473d77b898631f74466b5f7a094 (diff)
Notes
Diffstat (limited to 'sys/dev/gx')
-rw-r--r--sys/dev/gx/if_gx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/gx/if_gx.c b/sys/dev/gx/if_gx.c
index 3573a7866114..4b5955f4ef51 100644
--- a/sys/dev/gx/if_gx.c
+++ b/sys/dev/gx/if_gx.c
@@ -341,8 +341,7 @@ gx_attach(device_t dev)
/* Set up ifnet structure */
ifp = &gx->arpcom.ac_if;
ifp->if_softc = gx;
- ifp->if_unit = device_get_unit(dev);
- ifp->if_name = "gx";
+ if_initname(ifp, device_get_name(dev), device_get_unit(dev));
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
ifp->if_ioctl = gx_ioctl;
ifp->if_output = ether_output;