From 3df4e47b1e0ebaa2ae04b752662482c84d64aded Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 22 Feb 2006 17:19:10 +0000 Subject: [PATCH] Use bus_setup_intr() rather than invoking BUS_SETUP_INTR() directly so that puc still prints out [FAST] on Peter's box. --- sys/dev/puc/puc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c index 0a5143656ff..32150030ccc 100644 --- a/sys/dev/puc/puc.c +++ b/sys/dev/puc/puc.c @@ -198,15 +198,13 @@ puc_attach(device_t dev, const struct puc_device_description *desc) sc->irqres = res; sc->irqrid = rid; #ifdef PUC_FASTINTR - irq_setup = BUS_SETUP_INTR(device_get_parent(dev), dev, res, + irq_setup = bus_setup_intr(dev, res, INTR_TYPE_TTY | INTR_FAST, puc_intr, sc, &sc->intr_cookie); if (irq_setup == 0) sc->fastintr = INTR_FAST; else - irq_setup = BUS_SETUP_INTR(device_get_parent(dev), dev, res, - INTR_TYPE_TTY, puc_intr, sc, &sc->intr_cookie); #else - irq_setup = BUS_SETUP_INTR(device_get_parent(dev), dev, res, + irq_setup = bus_setup_intr(dev, res, INTR_TYPE_TTY, puc_intr, sc, &sc->intr_cookie); #endif if (irq_setup != 0)