diff options
author | Archie Cobbs <archie@FreeBSD.org> | 2000-07-13 22:54:34 +0000 |
---|---|---|
committer | Archie Cobbs <archie@FreeBSD.org> | 2000-07-13 22:54:34 +0000 |
commit | 21b8ebd926583116aa2cfe13371539035c4c8249 (patch) | |
tree | 9138788c579d4f5d51cd1a679899f325a789cb7e /sys/dev/an/if_an_isa.c | |
parent | 4a19005c4897cb2bddd9f1d0a184e503c15e23bf (diff) | |
download | src-21b8ebd926583116aa2cfe13371539035c4c8249.tar.gz src-21b8ebd926583116aa2cfe13371539035c4c8249.zip |
Make all Ethernet drivers attach using ether_ifattach() and detach using
ether_ifdetach().
The former consolidates the operations of if_attach(), ng_ether_attach(),
and bpfattach(). The latter consolidates the corresponding detach operations.
Reviewed by: julian, freebsd-net
Notes
Notes:
svn path=/head/; revision=63090
Diffstat (limited to 'sys/dev/an/if_an_isa.c')
-rw-r--r-- | sys/dev/an/if_an_isa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/an/if_an_isa.c b/sys/dev/an/if_an_isa.c index e7984373fd86..2d78fcb937ce 100644 --- a/sys/dev/an/if_an_isa.c +++ b/sys/dev/an/if_an_isa.c @@ -131,7 +131,7 @@ an_detach_isa(device_t dev) struct ifnet *ifp = &sc->arpcom.ac_if; an_stop(sc); - if_detach(ifp); + ether_ifdetach(ifp, ETHER_BPF_SUPPORTED); bus_teardown_intr(dev, sc->irq_res, sc->irq_handle); an_release_resources(dev); |