diff options
author | jhb <jhb@FreeBSD.org> | 2006-02-22 18:16:26 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-02-22 18:16:26 +0000 |
commit | 4793b3db380bcaac1d396101ed11d3b3001642e5 (patch) | |
tree | 804a52776d979b0d584c9efe815d95731c11d05d /sys/dev/ppc/ppc.c | |
parent | 82b4c8972021decda7584eb5dce699df1de06416 (diff) | |
download | FreeBSD-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/dev/ppc/ppc.c')
-rw-r--r-- | sys/dev/ppc/ppc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c index 5890ca0..d7adf42 100644 --- a/sys/dev/ppc/ppc.c +++ b/sys/dev/ppc/ppc.c @@ -1997,8 +1997,8 @@ ppc_attach(device_t dev) /* register the ppc interrupt handler as default */ if (ppc->res_irq) { /* default to the tty mask for registration */ /* XXX */ - if (BUS_SETUP_INTR(parent, dev, ppc->res_irq, INTR_TYPE_TTY, - ppcintr, dev, &ppc->intr_cookie) == 0) { + if (bus_setup_intr(dev, ppc->res_irq, INTR_TYPE_TTY, + ppcintr, dev, &ppc->intr_cookie) == 0) { /* remember the ppcintr is registered */ ppc->ppc_registered = 1; |