diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2000-03-15 22:26:17 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2000-03-15 22:26:17 +0000 |
commit | b5dac19635d11fb35b3efb4588becad7f396ac33 (patch) | |
tree | a6f49987b58c00b7f13958e805cf69e2d867b465 /sys/pci/uhci_pci.c | |
parent | 05fb95dedcec6c2d04be49a50c6219ca8981c0bb (diff) | |
download | FreeBSD-src-b5dac19635d11fb35b3efb4588becad7f396ac33.zip FreeBSD-src-b5dac19635d11fb35b3efb4588becad7f396ac33.tar.gz |
Add an ID for the SiS 5571.
Remove the unnecessary use of parent.
Diffstat (limited to 'sys/pci/uhci_pci.c')
-rw-r--r-- | sys/pci/uhci_pci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/pci/uhci_pci.c b/sys/pci/uhci_pci.c index 8859e50..3ae3e1a 100644 --- a/sys/pci/uhci_pci.c +++ b/sys/pci/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", |