From b31af3a1631fc0f90cf1af173a6b47a95453bba5 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 13 Sep 1999 13:07:01 +0000 Subject: establish irq after aic --- sys/dev/pcmcia/aic_pcmcia.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'sys/dev/pcmcia/aic_pcmcia.c') 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); } -- cgit v1.2.3