From fbf6f7f1d625e83204b2c0306155ba6410a353e7 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 10 Feb 2002 05:04:20 +0000 Subject: [PATCH] Null interrupt handlers should be OK, so if we don't have a function, just return. --- sys/dev/pccard/pccard.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index 2b2ace4a826..8981034d6d5 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -1133,13 +1133,8 @@ pccard_intr(void *arg) struct pccard_function *pf = (struct pccard_function*) arg; int reg; - /* - * If we go to resetting a card, we may need a null interrupt hanlder - * to work (since the system may call it before the device can - * establish an ISR) due to interrupt sharing at a higher level. - */ if (pf->intr_handler == NULL) - panic("Null interrupt handler?\n"); + return; /* * XXX The CCR_STATUS register bits used here are