diff options
author | phk <phk@FreeBSD.org> | 2002-09-03 11:24:25 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-03 11:24:25 +0000 |
commit | d24190132af05013d63b7f0dbafb7f4e3ce9b8cf (patch) | |
tree | 98ed7de57b19c9ec640b30137f51af987fc79731 /sys/dev/pccard | |
parent | baf5e09769325c8052d162b3876f92ec50e473c5 (diff) | |
download | FreeBSD-src-d24190132af05013d63b7f0dbafb7f4e3ce9b8cf.zip FreeBSD-src-d24190132af05013d63b7f0dbafb7f4e3ce9b8cf.tar.gz |
Drop another cookie to wet Warners appetite:
We need to call the drivers interrupt function even though the card is not
multifunction.
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r-- | sys/dev/pccard/pccard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index ba9add0..2376fc1 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 |