summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic.c
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1997-10-06 04:02:42 +0000
committernate <nate@FreeBSD.org>1997-10-06 04:02:42 +0000
commit8c30ca691bbeab5cef48e98c503701eee9298fb7 (patch)
tree8d9fa953657729124e07267d657e143806818c56 /sys/pccard/pcic.c
parent580b436a25f730d9c2a66b5494736e4eab9d77e1 (diff)
downloadFreeBSD-src-8c30ca691bbeab5cef48e98c503701eee9298fb7.zip
FreeBSD-src-8c30ca691bbeab5cef48e98c503701eee9298fb7.tar.gz
- Fix braino in last commit.
Diffstat (limited to 'sys/pccard/pcic.c')
-rw-r--r--sys/pccard/pcic.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index 15b345d..cab4759 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -807,17 +807,9 @@ pcic_probe(void)
* enable it and hope for the best.
*/
if (sp->controller == PCIC_PD672X) {
- sp->setb(sp, PCIC_MISC1, PCIC_SPKR_EN);
- sp->setb(sp, PCIC_MISC2, PCIC_LPDM_EN);
- }
- if (sp->controller == PCIC_PD672X) {
- sp->setb(sp, PCIC_MISC1, PCIC_SPKR_EN);
- sp->setb(sp, PCIC_MISC2, PCIC_LPDM_EN);
- }
- if (sp->controller == PCIC_PD672X) {
setb(sp, PCIC_MISC1, PCIC_SPKR_EN);
setb(sp, PCIC_MISC2, PCIC_LPDM_EN);
- }
+ }
/*
* Check for a card in this slot.
*/
@@ -1191,7 +1183,7 @@ pcic_resume(struct slot *slotp)
if (pcic_irq > 0)
sp->putb(sp, PCIC_STAT_INT, (pcic_irq << 4) | 0xF);
if (sp->controller == PCIC_PD672X) {
- sp->setb(sp, PCIC_MISC1, PCIC_SPKR_EN);
- sp->setb(sp, PCIC_MISC2, PCIC_LPDM_EN);
+ setb(sp, PCIC_MISC1, PCIC_SPKR_EN);
+ setb(sp, PCIC_MISC2, PCIC_LPDM_EN);
}
}
OpenPOWER on IntegriCloud