diff options
| author | mycroft <mycroft@NetBSD.org> | 2003-09-03 01:33:23 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 2003-09-03 01:33:23 +0000 |
| commit | 3713dfb05bb2bf04caaca4410f0a025155adef0b (patch) | |
| tree | 20aaf4ecd15de9f8a6ef31389441ffde7db56734 /sys/dev/ic | |
| parent | 5bb8036aeb097818131d353e00d893b7c4c10ea4 (diff) | |
Fix another place where we blasted PCIC_INTR_ENABLE.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/i82365.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/ic/i82365.c b/sys/dev/ic/i82365.c index 49625f82b16..0eca3c09018 100644 --- a/sys/dev/ic/i82365.c +++ b/sys/dev/ic/i82365.c @@ -1,4 +1,4 @@ -/* $NetBSD: i82365.c,v 1.73 2003/09/02 22:44:08 mycroft Exp $ */ +/* $NetBSD: i82365.c,v 1.74 2003/09/03 01:33:23 mycroft Exp $ */ /* * Copyright (c) 2000 Christian E. Hopps. All rights reserved. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: i82365.c,v 1.73 2003/09/02 22:44:08 mycroft Exp $"); +__KERNEL_RCSID(0, "$NetBSD: i82365.c,v 1.74 2003/09/03 01:33:23 mycroft Exp $"); #define PCICDEBUG @@ -864,6 +864,7 @@ void pcic_deactivate_card(h) struct pcic_handle *h; { + int intr; /* call the MI deactivate function */ pcmcia_card_deactivate(h->pcmcia); @@ -872,7 +873,9 @@ pcic_deactivate_card(h) pcic_write(h, PCIC_PWRCTL, 0); /* reset the socket */ - pcic_write(h, PCIC_INTR, 0); + intr = pcic_read(h, PCIC_INTR); + intr &= PCIC_INTR_ENABLE; + pcic_write(h, PCIC_INTR, intr); } int |
