summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authornon <non@FreeBSD.org>2001-09-04 04:32:48 +0000
committernon <non@FreeBSD.org>2001-09-04 04:32:48 +0000
commit4512b6c39a7d7c25a6219100a8fa01aa80930d5e (patch)
tree3c642defc395c693fae82dd3734ac6d1d20abed4 /sys/dev
parentf492deda522dae8b5f6bd0010aef207155e70e17 (diff)
downloadFreeBSD-src-4512b6c39a7d7c25a6219100a8fa01aa80930d5e.zip
FreeBSD-src-4512b6c39a7d7c25a6219100a8fa01aa80930d5e.tar.gz
We should not pass the size of the memory to bus_alloc_resource().
We should use 1 to request default iomem. Pointed-out-by: imp
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ncv/ncr53c500_pccard.c2
-rw-r--r--sys/dev/nsp/nsp_pccard.c2
-rw-r--r--sys/dev/stg/tmc18c30_isa.c2
-rw-r--r--sys/dev/stg/tmc18c30_pccard.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ncv/ncr53c500_pccard.c b/sys/dev/ncv/ncr53c500_pccard.c
index 4a79f75..b5e21c3 100644
--- a/sys/dev/ncv/ncr53c500_pccard.c
+++ b/sys/dev/ncv/ncr53c500_pccard.c
@@ -198,7 +198,7 @@ ncv_alloc_resource(DEVPORT_PDEVICE dev)
sc->mem_rid = 0;
sc->mem_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &sc->mem_rid,
- 0, ~0, msize, RF_ACTIVE);
+ 0, ~0, 1, RF_ACTIVE);
if (sc->mem_res == NULL) {
ncv_release_resource(dev);
return(ENOMEM);
diff --git a/sys/dev/nsp/nsp_pccard.c b/sys/dev/nsp/nsp_pccard.c
index c024dc8..ecdf821 100644
--- a/sys/dev/nsp/nsp_pccard.c
+++ b/sys/dev/nsp/nsp_pccard.c
@@ -175,7 +175,7 @@ nsp_alloc_resource(DEVPORT_PDEVICE dev)
sc->mem_rid = 0;
sc->mem_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &sc->mem_rid,
- 0, ~0, msize, RF_ACTIVE);
+ 0, ~0, 1, RF_ACTIVE);
if (sc->mem_res == NULL) {
nsp_release_resource(dev);
return(ENOMEM);
diff --git a/sys/dev/stg/tmc18c30_isa.c b/sys/dev/stg/tmc18c30_isa.c
index 21e9361..97fea9c 100644
--- a/sys/dev/stg/tmc18c30_isa.c
+++ b/sys/dev/stg/tmc18c30_isa.c
@@ -149,7 +149,7 @@ stg_alloc_resource(device_t dev)
sc->mem_rid = 0;
sc->mem_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &sc->mem_rid,
- 0, ~0, msize, RF_ACTIVE);
+ 0, ~0, 1, RF_ACTIVE);
if (sc->mem_res == NULL) {
stg_release_resource(dev);
return(ENOMEM);
diff --git a/sys/dev/stg/tmc18c30_pccard.c b/sys/dev/stg/tmc18c30_pccard.c
index 8a282b1..f665dc2 100644
--- a/sys/dev/stg/tmc18c30_pccard.c
+++ b/sys/dev/stg/tmc18c30_pccard.c
@@ -174,7 +174,7 @@ stg_alloc_resource(DEVPORT_PDEVICE dev)
sc->mem_rid = 0;
sc->mem_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &sc->mem_rid,
- 0, ~0, msize, RF_ACTIVE);
+ 0, ~0, 1, RF_ACTIVE);
if (sc->mem_res == NULL) {
stg_release_resource(dev);
return(ENOMEM);
OpenPOWER on IntegriCloud