summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-02-28 00:16:37 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-02-28 00:16:37 +0000
commitc2e6ecdebff0283934400e40cb959acd50e5d3ed (patch)
tree9912a2c29275e85ad92116bd80579eaa2cc221c3
parent6dc3891bc3d263621bd46e29a1e58057d887e2b8 (diff)
unbreak pcmcia an(4) by adding back some lines removed in rev 1.21
without this is won't attach. ok stsp@ millert@ miod@
-rw-r--r--sys/dev/pcmcia/if_an_pcmcia.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pcmcia/if_an_pcmcia.c b/sys/dev/pcmcia/if_an_pcmcia.c
index ccb1097bbdb..bfedf0095d8 100644
--- a/sys/dev/pcmcia/if_an_pcmcia.c
+++ b/sys/dev/pcmcia/if_an_pcmcia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_an_pcmcia.c,v 1.22 2011/07/03 15:47:17 matthew Exp $ */
+/* $OpenBSD: if_an_pcmcia.c,v 1.23 2015/02/28 00:16:36 jsg Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -130,6 +130,7 @@ an_pcmcia_attach(struct device *parent, struct device *self, void *aux)
sc->sc_iot = psc->sc_pcioh.iot;
sc->sc_ioh = psc->sc_pcioh.ioh;
+ sc->sc_enabled = 1;
sc->sc_ih = pcmcia_intr_establish(psc->sc_pf, IPL_NET, an_intr, sc,
sc->sc_dev.dv_xname);
@@ -145,6 +146,7 @@ an_pcmcia_attach(struct device *parent, struct device *self, void *aux)
return;
}
+ sc->sc_enabled = 0;
psc->sc_state = AN_PCMCIA_ATTACHED;
}