- 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.
This commit is contained in:
Nate Williams 1997-10-23 19:00:16 +00:00
parent d63c6d1aaa
commit 1030f4ea71

View File

@ -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);