Only allocate 1 port for non-zero rids. Either we'll get the proper
length form the enumeration mechanism, or we're dealing with the FDCTL register, which is only 1 port long.
This commit is contained in:
parent
1c80835774
commit
d90aafb50d
@ -90,7 +90,7 @@ fdc_isa_alloc_resources(device_t dev, struct fdc_data *fdc)
|
||||
for (rid = 0; ; rid++) {
|
||||
newrid = rid;
|
||||
res = bus_alloc_resource(dev, SYS_RES_IOPORT, &newrid,
|
||||
0ul, ~0ul, nport, RF_ACTIVE);
|
||||
0ul, ~0ul, rid == 0 ? nport : 1, RF_ACTIVE);
|
||||
if (res == NULL)
|
||||
break;
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user