- 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:
parent
d63c6d1aaa
commit
1030f4ea71
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user