diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-11-03 13:01:23 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-11-03 13:01:23 +0000 |
commit | 5a6591e38b3e97e45083ffb1a8c6f8eda500b8ff (patch) | |
tree | c6401268c3538b58aca374dae7ea54f8809f8c94 | |
parent | 355795ace56248e9cdcfd4cb01057dd6eca98eb6 (diff) | |
download | FreeBSD-src-5a6591e38b3e97e45083ffb1a8c6f8eda500b8ff.zip FreeBSD-src-5a6591e38b3e97e45083ffb1a8c6f8eda500b8ff.tar.gz |
- Change driver name to fix if_xname breakage in the previous revision.
- Don't call device_get_unit() twice.
Tested by: nork
-rw-r--r-- | sys/dev/firewire/if_fwe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/firewire/if_fwe.c b/sys/dev/firewire/if_fwe.c index 92c0314..ba3eeca 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), }; |