summaryrefslogtreecommitdiffstats
path: root/sys/dev/pcic/i82365_isa.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pcic/i82365_isa.c')
-rw-r--r--sys/dev/pcic/i82365_isa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pcic/i82365_isa.c b/sys/dev/pcic/i82365_isa.c
index 800b848..e71b87f 100644
--- a/sys/dev/pcic/i82365_isa.c
+++ b/sys/dev/pcic/i82365_isa.c
@@ -134,7 +134,7 @@ pcic_isa_bus_width_probe (device_t dev)
struct resource *r;
base = rman_get_start(sc->port_res);
- length = rman_get_end(sc->port_res) - rman_get_end(sc->port_res) + 1;
+ length = rman_get_size(sc->port_res);
iot = sc->iot;
ioh = sc->ioh;
OpenPOWER on IntegriCloud