From 5e7c89e4883d582e7cdec92157a506c1ba534172 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Mon, 3 Nov 2003 13:01:23 +0000 Subject: [PATCH] - Change driver name to fix if_xname breakage in the previous revision. - Don't call device_get_unit() twice. Tested by: nork --- sys/dev/firewire/if_fwe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/firewire/if_fwe.c b/sys/dev/firewire/if_fwe.c index 92c0314502a9..ba3eeca81650 100644 --- a/sys/dev/firewire/if_fwe.c +++ b/sys/dev/firewire/if_fwe.c @@ -123,7 +123,7 @@ fwe_poll(struct ifnet *ifp, enum poll_cmd cmd, int count) static void fwe_identify(driver_t *driver, device_t parent) { - BUS_ADD_CHILD(parent, 0, "if_fwe", device_get_unit(parent)); + BUS_ADD_CHILD(parent, 0, "fwe", device_get_unit(parent)); } static int @@ -186,7 +186,7 @@ fwe_attach(device_t dev) ifp = &fwe->fwe_if; ifp->if_softc = &fwe->eth_softc; - if_initname(ifp, device_get_name(dev), device_get_unit(dev)); + if_initname(ifp, device_get_name(dev), unit); ifp->if_init = fwe_init; ifp->if_output = ether_output; ifp->if_start = fwe_start; @@ -640,7 +640,7 @@ static device_method_t fwe_methods[] = { }; static driver_t fwe_driver = { - "if_fwe", + "fwe", fwe_methods, sizeof(struct fwe_softc), };