summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-06-28 17:38:26 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-06-28 17:38:26 +0000
commitd0d44db7fb2c6945fd2cfe2c718795285d380224 (patch)
treed2418e265d221efacde8bf70500b6ebd877ec2d6 /sys
parent85f35d7efb9b5c6f9ed17358a18cec9a45a63773 (diff)
Don't call the drivers' xxx_activate() function directly -- use the system
config_activate() and config_deactivate() routines instead. This way, the DVF_ACTIVE bit gets updated appropriately.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pcmcia/pcmcia.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/pcmcia.c b/sys/dev/pcmcia/pcmcia.c
index a4afc36109f..d9ee7d91c18 100644
--- a/sys/dev/pcmcia/pcmcia.c
+++ b/sys/dev/pcmcia/pcmcia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcmcia.c,v 1.28 2000/04/28 13:36:58 niklas Exp $ */
+/* $OpenBSD: pcmcia.c,v 1.29 2000/06/28 17:38:25 aaron Exp $ */
/* $NetBSD: pcmcia.c,v 1.9 1998/08/13 02:10:55 eeh Exp $ */
/*
@@ -151,8 +151,10 @@ pcmcia_power(why, arg)
d = pf->child;
if (d == NULL)
continue;
- if (d->dv_cfdata->cf_attach->ca_activate)
- (*d->dv_cfdata->cf_attach->ca_activate)(d, act);
+ if (act == DVACT_ACTIVATE)
+ config_activate(pf->child);
+ else
+ config_deactivate(pf->child);
}
}