From 7500723246255e62f83ecdf05d9c8877b2d12cd5 Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Fri, 20 Aug 2004 16:34:30 +0000 Subject: [PATCH] Remove a check that is too strict. With BIOSen that specify an IO/ctl port of 0x3f2-0x3f5,0x3f7 the ports are not 7 bytes apart. This should fix floppy probing on such systems. (We handle the case of adjusting for a start of 0x3f2 -> 0x3f0 separately, although that code should still be checked if there are still floppy problems for others.) Tested by: Sarunas Vancevicius MFC after: 3 days --- sys/dev/fdc/fdc_isa.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/dev/fdc/fdc_isa.c b/sys/dev/fdc/fdc_isa.c index c80dba0e21c8bc..4ca67b241af5d5 100644 --- a/sys/dev/fdc/fdc_isa.c +++ b/sys/dev/fdc/fdc_isa.c @@ -102,10 +102,6 @@ fdc_isa_alloc_resources(device_t dev, struct fdc_data *fdc) fdc->rid_ctl = i; } } - if (min_start + 7 != max_start) { - device_printf(dev, "I/O to control range incorrect\n"); - return (ENXIO); - } } fdc->res_ioport = bus_alloc_resource(dev, SYS_RES_IOPORT,