summaryrefslogtreecommitdiffstats
path: root/sys/dev/sn/if_sn_pccard.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-12-13 01:47:19 +0000
committerimp <imp@FreeBSD.org>2000-12-13 01:47:19 +0000
commite1fe72742c53537e4980deffe6803189c00560fa (patch)
treeccf3d6ebc59b043b73c59182f1c8b25512734875 /sys/dev/sn/if_sn_pccard.c
parentac4f44c24e80fa2aed5a82cfeeafffe9ff6d77a0 (diff)
downloadFreeBSD-src-e1fe72742c53537e4980deffe6803189c00560fa.zip
FreeBSD-src-e1fe72742c53537e4980deffe6803189c00560fa.tar.gz
Add isa support:
o write isa driver routines. o factor detach routine in sn_detach.
Diffstat (limited to 'sys/dev/sn/if_sn_pccard.c')
-rw-r--r--sys/dev/sn/if_sn_pccard.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/sn/if_sn_pccard.c b/sys/dev/sn/if_sn_pccard.c
index 34a4e19..bb005ae 100644
--- a/sys/dev/sn/if_sn_pccard.c
+++ b/sys/dev/sn/if_sn_pccard.c
@@ -107,22 +107,11 @@ sn_pccard_attach(device_t dev)
return (sn_attach(dev));
}
-static int
-sn_pccard_detach(device_t dev)
-{
- struct sn_softc *sc = device_get_softc(dev);
-
- sc->arpcom.ac_if.if_flags &= ~IFF_RUNNING;
- ether_ifdetach(&sc->arpcom.ac_if, ETHER_BPF_SUPPORTED);
- sn_deactivate(dev);
- return 0;
-}
-
static device_method_t sn_pccard_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, pccard_compat_probe),
DEVMETHOD(device_attach, pccard_compat_attach),
- DEVMETHOD(device_detach, sn_pccard_detach),
+ DEVMETHOD(device_detach, sn_detach),
/* Card interface */
DEVMETHOD(card_compat_match, sn_pccard_match),
OpenPOWER on IntegriCloud