mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
8f95fc2481
commit
3df4e47b1e
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue