From 26825b2fa5cabc92053279a931c2fb0bbcbde183 Mon Sep 17 00:00:00 2001 From: nate Date: Thu, 23 Oct 1997 19:00:16 +0000 Subject: - Move the untimeout code call out of the check for pwr_off_pending. It shouldn't make any difference, but did on a couple of test systems. --- sys/pccard/pccard.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/pccard') diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c index aeefe5b..949dff7 100644 --- a/sys/pccard/pccard.c +++ b/sys/pccard/pccard.c @@ -654,10 +654,9 @@ inserted(void *arg) */ sp->pwr.vcc = 50; sp->pwr.vpp = 0; - if (sp->pwr_off_pending) { - untimeout(power_off_slot, (caddr_t)sp, sp->poff_ch); + untimeout(power_off_slot, (caddr_t)sp, sp->poff_ch); + if (sp->pwr_off_pending) sp->ctrl->disable(sp); - } sp->pwr_off_pending = 0; sp->ctrl->power(sp); printf("Card inserted, slot %d\n", sp->slot); -- cgit v1.1