aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fxp
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/fxp
parentdc6279b887bf4473d77b898631f74466b5f7a094 (diff)
Notes
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 7fa3e88530de0..39a42d0f0607b 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -793,8 +793,7 @@ fxp_attach(device_t dev)
}
ifp = &sc->arpcom.ac_if;
- ifp->if_unit = device_get_unit(dev);
- ifp->if_name = "fxp";
+ if_initname(ifp, device_get_name(dev), device_get_unit(dev));
ifp->if_output = ether_output;
ifp->if_baudrate = 100000000;
ifp->if_init = fxp_init;