summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/fdc.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-02-22 18:16:26 +0000
committerjhb <jhb@FreeBSD.org>2006-02-22 18:16:26 +0000
commit4793b3db380bcaac1d396101ed11d3b3001642e5 (patch)
tree804a52776d979b0d584c9efe815d95731c11d05d /sys/pc98/cbus/fdc.c
parent82b4c8972021decda7584eb5dce699df1de06416 (diff)
downloadFreeBSD-src-4793b3db380bcaac1d396101ed11d3b3001642e5.zip
FreeBSD-src-4793b3db380bcaac1d396101ed11d3b3001642e5.tar.gz
- Use bus_setup_intr() and bus_teardown_intr() to register device driver
interrupt handlers rather than BUS_SETUP_INTR() and BUS_TEARDOWN_INTR(). Uses of the BUS_*() versions in the implementation of foo_intr methods in bus drivers were not changed. Mostly this just means that some drivers might start printing diagnostic messages like [FAST] when appropriate as well as honoring mpsafenet=0. - Fix two more of the ppbus drivers' identify routines to function correctly in the mythical case of a machine with more than one ppbus.
Diffstat (limited to 'sys/pc98/cbus/fdc.c')
-rw-r--r--sys/pc98/cbus/fdc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index d2ac417..9fc1710 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -654,8 +654,7 @@ fdc_release_resources(struct fdc_data *fdc)
dev = fdc->fdc_dev;
if (fdc->fdc_intr) {
- BUS_TEARDOWN_INTR(device_get_parent(dev), dev, fdc->res_irq,
- fdc->fdc_intr);
+ bus_teardown_intr(dev, fdc->res_irq, fdc->fdc_intr);
fdc->fdc_intr = NULL;
}
if (fdc->res_irq != 0) {
@@ -823,7 +822,7 @@ fdc_attach(device_t dev)
fdc = device_get_softc(dev);
fdc->fdc_dev = dev;
- error = BUS_SETUP_INTR(device_get_parent(dev), dev, fdc->res_irq,
+ error = bus_setup_intr(dev, fdc->res_irq,
INTR_TYPE_BIO | INTR_ENTROPY, fdc_intr, fdc,
&fdc->fdc_intr);
if (error) {
OpenPOWER on IntegriCloud