The end argument to bus_alloc_resource() should have been ~0 and

not ~1, but the call has been switched over to bus_alloc_resource_any()
which has the same effect.

Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
This commit is contained in:
Peter Grehan 2004-03-31 07:40:46 +00:00
parent 3726033348
commit 2e428c5487

View File

@ -171,8 +171,7 @@ ata_kauai_probe(device_t dev)
ch = device_get_softc(dev);
rid = PCIR_BARS;
mem = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~1, 1,
RF_ACTIVE);
mem = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
if (mem == NULL) {
device_printf(dev, "could not allocate memory\n");
return (ENXIO);