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:
parent
3726033348
commit
2e428c5487
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user