summaryrefslogtreecommitdiffstats
path: root/sys/dev/gx/if_gx.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/gx/if_gx.c')
-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 3573a78..4b5955f 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;
OpenPOWER on IntegriCloud