diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-09-13 13:07:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-09-13 13:07:01 +0000 |
commit | b31af3a1631fc0f90cf1af173a6b47a95453bba5 (patch) | |
tree | 2e3a826d8ddf4a7974d1864ce108b578fed6a294 /sys/dev/pcmcia/aic_pcmcia.c | |
parent | 49cd2291f35127fc32ed4eab47c336b11baadce4 (diff) |
establish irq after aic
Diffstat (limited to 'sys/dev/pcmcia/aic_pcmcia.c')
-rw-r--r-- | sys/dev/pcmcia/aic_pcmcia.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/pcmcia/aic_pcmcia.c b/sys/dev/pcmcia/aic_pcmcia.c index b763bfc21ec..1578dccb3c7 100644 --- a/sys/dev/pcmcia/aic_pcmcia.c +++ b/sys/dev/pcmcia/aic_pcmcia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aic_pcmcia.c,v 1.7 1999/08/16 16:51:19 deraadt Exp $ */ +/* $OpenBSD: aic_pcmcia.c,v 1.8 1999/09/13 13:07:00 deraadt Exp $ */ /* $NetBSD: aic_pcmcia.c,v 1.6 1998/07/19 17:28:15 christos Exp $ */ /* @@ -159,13 +159,15 @@ aic_pcmcia_attach(parent, self, aux) return; } + /* Establish the interrupt handler. */ + psc->sc_ih = pcmcia_intr_establish(pa->pf, IPL_BIO, aicintr, sc); + if (psc->sc_ih == NULL) { + printf(": couldn't establish interrupt\n"); + return; + } + printf("\n"); aicattach(sc); - /* Establish the interrupt handler. */ - psc->sc_ih = pcmcia_intr_establish(pa->pf, IPL_BIO, aicintr, sc); - if (psc->sc_ih == NULL) - printf("%s: couldn't establish interrupt\n", - sc->sc_dev.dv_xname); } |