turn off floppy motor (and light) even if the drive isn't found. This fixes

some laptop indicator lights which would be stuck on after the probe
This commit is contained in:
explorer 1996-10-09 16:10:14 +00:00
parent 6f57e37d56
commit e331708d2f

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.93 1996/08/31 05:10:03 mycroft Exp $ */
/* $NetBSD: fd.c,v 1.94 1996/10/09 16:10:14 explorer Exp $ */
/*-
* Copyright (c) 1993, 1994, 1995, 1996
@ -413,11 +413,12 @@ fdprobe(parent, match, aux)
printf("\n");
}
#endif
if (n != 2 || (fdc->sc_status[0] & 0xf8) != 0x20)
return 0;
/* turn off motor */
bus_io_write_1(bc, ioh, fdout, FDO_FRST);
if (n != 2 || (fdc->sc_status[0] & 0xf8) != 0x20)
return 0;
return 1;
}