diff options
| author | Nick Hibma <n_hibma@FreeBSD.org> | 2000-03-15 22:26:17 +0000 |
|---|---|---|
| committer | Nick Hibma <n_hibma@FreeBSD.org> | 2000-03-15 22:26:17 +0000 |
| commit | d0ba6675ceec18783a076109637131392ff7f69a (patch) | |
| tree | 84baaacd99ed1951dd615a27f4f6af46582695eb /sys/dev/usb/uhci_pci.c | |
| parent | 330dc9152dc918d07c425710a28bf23573270f00 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb/uhci_pci.c')
| -rw-r--r-- | sys/dev/usb/uhci_pci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/usb/uhci_pci.c b/sys/dev/usb/uhci_pci.c index 8859e5027f3f..3ae3e1ad3f64 100644 --- a/sys/dev/usb/uhci_pci.c +++ b/sys/dev/usb/uhci_pci.c @@ -161,7 +161,6 @@ static int uhci_pci_attach(device_t self) { uhci_softc_t *sc = device_get_softc(self); - device_t parent = device_get_parent(self); int rid; void *ih; struct resource *io_res, *irq_res; @@ -247,7 +246,7 @@ uhci_pci_attach(device_t self) break; } - err = BUS_SETUP_INTR(parent, self, irq_res, INTR_TYPE_BIO, + err = bus_setup_intr(self, irq_res, INTR_TYPE_BIO, (driver_intr_t *) uhci_intr, sc, &ih); if (err) { device_printf(self, "could not setup irq, %d\n", err); @@ -284,7 +283,7 @@ bad4: */ bus_space_write_2(sc->iot, sc->ioh, UHCI_INTR, 0); - err = BUS_TEARDOWN_INTR(parent, self, irq_res, ih); + err = bus_teardown_intr(self, irq_res, ih); if (err) /* XXX or should we panic? */ device_printf(self, "could not tear down irq, %d\n", |
