diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2003-10-31 18:32:15 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2003-10-31 18:32:15 +0000 |
| commit | 9bf40ede4a299f315bc4b0ae5329631b8c7dc271 (patch) | |
| tree | 4d9e6671d486576767506230a4240131526fea49 /sys/dev/awi | |
| parent | dc6279b887bf4473d77b898631f74466b5f7a094 (diff) | |
Notes
Diffstat (limited to 'sys/dev/awi')
| -rw-r--r-- | sys/dev/awi/if_awi_pccard.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/awi/if_awi_pccard.c b/sys/dev/awi/if_awi_pccard.c index 346802ef2da1..4b0887c61ed3 100644 --- a/sys/dev/awi/if_awi_pccard.c +++ b/sys/dev/awi/if_awi_pccard.c @@ -141,10 +141,9 @@ awi_pccard_attach(device_t dev) psc->sc_mem_res = 0; psc->sc_intrhand = 0; - ifp->if_name = "awi"; - ifp->if_unit = device_get_unit(dev); - snprintf(sc->sc_dev.dv_xname, sizeof(sc->sc_dev.dv_xname), - "%s%d", ifp->if_name, ifp->if_unit); + if_initname(ifp, device_get_name(dev), device_get_unit(dev)); + strlcpy(sc->sc_dev.dv_xname, ifp->if_xname, + sizeof(sc->sc_dev.dv_xname)); psc->sc_port_rid = 0; psc->sc_port_res = bus_alloc_resource(dev, SYS_RES_IOPORT, |
