diff options
author | gibbs <gibbs@FreeBSD.org> | 2004-08-18 17:17:43 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2004-08-18 17:17:43 +0000 |
commit | 8a11d8ccf0a1847a37b7d0d8431615c6bd6df93e (patch) | |
tree | 69bd65e1e395ab5dc7b707f1af4ffc404a692016 /sys/dev/aic7xxx | |
parent | 596d3e1549eb9e24cc8e3f32f4c43f1d23eca841 (diff) | |
download | FreeBSD-src-8a11d8ccf0a1847a37b7d0d8431615c6bd6df93e.zip FreeBSD-src-8a11d8ccf0a1847a37b7d0d8431615c6bd6df93e.tar.gz |
Initialize iobase from the resource allocated by bus_alloc_resource_any()
rather than with isa_get_port(). This value is only used in diagnostics,
but the value we want to print is the value in our resource, not in any
hint.
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r-- | sys/dev/aic7xxx/ahc_isa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/aic7xxx/ahc_isa.c b/sys/dev/aic7xxx/ahc_isa.c index 87f58be..73f32af 100644 --- a/sys/dev/aic7xxx/ahc_isa.c +++ b/sys/dev/aic7xxx/ahc_isa.c @@ -137,7 +137,6 @@ ahc_isa_probe(device_t dev) int error; int zero; - iobase = isa_get_port(dev); error = ENODEV; zero = 0; regs = NULL; @@ -145,10 +144,11 @@ ahc_isa_probe(device_t dev) regs = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &zero, RF_ACTIVE); if (regs == NULL) { - device_printf(dev, "ioport 0x%x alloc failed\n", iobase); + device_printf(dev, "No resources alloated.\n"); return (ENOMEM); } + iobase = rman_get_start(regs); tag = rman_get_bustag(regs); bsh = rman_get_bushandle(regs); |