Use bus_setup_intr() rather than invoking BUS_SETUP_INTR() directly so that

puc still prints out [FAST] on Peter's box.
This commit is contained in:
John Baldwin 2006-02-22 17:19:10 +00:00
parent 8f95fc2481
commit 3df4e47b1e

View file

@ -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)