summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/ata_kauai.c
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-03-31 07:40:46 +0000
committergrehan <grehan@FreeBSD.org>2004-03-31 07:40:46 +0000
commitc23e677e84cf59fe1d6944c63386c6fd0b8799ad (patch)
tree62377e2b118f02977fa34abf7e9a9054db36934d /sys/powerpc/powermac/ata_kauai.c
parentaeb757d841ec5f3f1806f265ec7dc7b6501bd95d (diff)
downloadFreeBSD-src-c23e677e84cf59fe1d6944c63386c6fd0b8799ad.zip
FreeBSD-src-c23e677e84cf59fe1d6944c63386c6fd0b8799ad.tar.gz
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>
Diffstat (limited to 'sys/powerpc/powermac/ata_kauai.c')
-rw-r--r--sys/powerpc/powermac/ata_kauai.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/powerpc/powermac/ata_kauai.c b/sys/powerpc/powermac/ata_kauai.c
index 655ac6c..f8817b1 100644
--- a/sys/powerpc/powermac/ata_kauai.c
+++ b/sys/powerpc/powermac/ata_kauai.c
@@ -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);
OpenPOWER on IntegriCloud