From 13c33c582a6ba9bf641cffccc074b4e546909103 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Tue, 3 Sep 2002 11:24:25 +0000 Subject: [PATCH] Drop another cookie to wet Warners appetite: We need to call the drivers interrupt function even though the card is not multifunction. --- sys/dev/pccard/pccard.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index ba9add014912..2376fc18fb4c 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -1174,6 +1174,7 @@ static void pccard_intr(void *arg) { struct pccard_function *pf = (struct pccard_function*) arg; +#ifdef COOKIE_FOR_WARNER int reg; if (pf->intr_handler == NULL) @@ -1189,6 +1190,11 @@ pccard_intr(void *arg) reg & ~PCCARD_CCR_STATUS_INTR); pf->intr_handler(pf->intr_handler_arg); } +#else + if (pf->intr_handler == NULL) + return; + pf->intr_handler(pf->intr_handler_arg); +#endif } static int