aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/puc
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-02-22 17:19:10 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-02-22 17:19:10 +0000
commit3df4e47b1e0ebaa2ae04b752662482c84d64aded (patch)
treee54a7b12504bfadccfb379d26f4a12ad27ee0f1d /sys/dev/puc
parent8f95fc2481ec61e2b2eb4274015c14f9c623be16 (diff)
Notes
Diffstat (limited to 'sys/dev/puc')
-rw-r--r--sys/dev/puc/puc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c
index 0a5143656ff82..32150030ccc89 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)