diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-09-10 17:55:09 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2000-09-10 17:55:09 +0000 |
commit | 7ba87822d078e9fca49ea1b4b4924eba8a6f403c (patch) | |
tree | 3bd2e94ee9bf15dce334abd19975fc522bae1b57 /sys | |
parent | 8d4b7ad55031d5018d2bc186c241228e1f5dae5f (diff) |
enable card on resume
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pcmcia/if_ray.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pcmcia/if_ray.c b/sys/dev/pcmcia/if_ray.c index 94525639f74..58352e24018 100644 --- a/sys/dev/pcmcia/if_ray.c +++ b/sys/dev/pcmcia/if_ray.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ray.c,v 1.7 2000/09/04 03:11:22 mickey Exp $ */ +/* $OpenBSD: if_ray.c,v 1.8 2000/09/10 17:55:08 mickey Exp $ */ /* $NetBSD: if_ray.c,v 1.19 2000/04/22 22:36:14 thorpej Exp $ */ /* @@ -678,14 +678,16 @@ ray_activate(dev, act) struct ray_softc *sc = (struct ray_softc *)dev; struct ifnet *ifp = &sc->sc_if; int s; - int rv = 0; RAY_DPRINTF(("%s: activate\n", sc->sc_xname)); s = splnet(); switch (act) { case DVACT_ACTIVATE: - rv = EOPNOTSUPP; + pcmcia_function_enable(sc->sc_pf); + printf("%s:", sc->sc_dev.dv_xname); + ray_enable(sc); + printf("\n"); break; case DVACT_DEACTIVATE: @@ -699,7 +701,7 @@ ray_activate(dev, act) break; } splx(s); - return (rv); + return (0); } int |