summaryrefslogtreecommitdiffstats
path: root/sys/dev/aha/aha_isa.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-11-13 04:14:53 +0000
committerimp <imp@FreeBSD.org>2003-11-13 04:14:53 +0000
commit5b063056ef8df203c8644511c37b7357c648261a (patch)
treeda97c71b01d09aba67aff36769bad54d3610b915 /sys/dev/aha/aha_isa.c
parent0dcebbc29a61720f353976f905620c9e8f64401d (diff)
downloadFreeBSD-src-5b063056ef8df203c8644511c37b7357c648261a.zip
FreeBSD-src-5b063056ef8df203c8644511c37b7357c648261a.tar.gz
Save the device so we can do a device_printf.
Use this in preference to aha_name. Remove aha_name function and #define it to device_get_unitname() Minor indentation tweaks resulting therefrom
Diffstat (limited to 'sys/dev/aha/aha_isa.c')
-rw-r--r--sys/dev/aha/aha_isa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/aha/aha_isa.c b/sys/dev/aha/aha_isa.c
index ad46f6d..5e7831e 100644
--- a/sys/dev/aha/aha_isa.c
+++ b/sys/dev/aha/aha_isa.c
@@ -115,6 +115,7 @@ aha_isa_probe(device_t dev)
int irq;
config_data_t config_data;
+ aha->dev = dev;
/* Check isapnp ids */
if (ISA_PNP_PROBE(device_get_parent(dev), dev, aha_ids) == ENXIO)
return (ENXIO);
@@ -193,6 +194,7 @@ aha_isa_attach(device_t dev)
void *ih;
int error;
+ aha->dev = dev;
aha->portrid = 0;
aha->port = bus_alloc_resource(dev, SYS_RES_IOPORT, &aha->portrid,
0, ~0, AHA_NREGS, RF_ACTIVE);
OpenPOWER on IntegriCloud