summaryrefslogtreecommitdiffstats
path: root/sys/dev/stg/tmc18c30_isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/stg/tmc18c30_isa.c')
-rw-r--r--sys/dev/stg/tmc18c30_isa.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud