diff options
author | 2000-09-10 17:55:08 +0000 | |
---|---|---|
committer | 2000-09-10 17:55:08 +0000 | |
commit | 8ca267a2894f834085d4d64a4edfdcd427a5cdbc (patch) | |
tree | e5200353f45494545e97e2ed0efc18e9ea0cd568 | |
parent | Clean up MAKEDEV with respect to wscons. wsdisplay should not exist ttyEx (diff) | |
download | wireguard-openbsd-8ca267a2894f834085d4d64a4edfdcd427a5cdbc.tar.xz wireguard-openbsd-8ca267a2894f834085d4d64a4edfdcd427a5cdbc.zip |
enable card on resume
-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 |