summaryrefslogtreecommitdiff
path: root/sys/dev/pci/ehci_pci.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-04-11 08:09:33 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-04-11 08:09:33 +0000
commitef3065f8594ac4e264fc959f54da51bd7a22e7aa (patch)
tree9e2c349d7e347dfdbb9b516903a7c1908518ad0b /sys/dev/pci/ehci_pci.c
parent8c3ed794656cf4d237884ed0858e578810227e89 (diff)
get rid of the lines on ehci attach that show the version and the companion
controllers. remove the insane amount of support code needed just for the printing of the companion controllers while here. zap it deraadt@ sure pascoe@
Diffstat (limited to 'sys/dev/pci/ehci_pci.c')
-rw-r--r--sys/dev/pci/ehci_pci.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/sys/dev/pci/ehci_pci.c b/sys/dev/pci/ehci_pci.c
index eaf5df4ea19..3bb2b4ec76c 100644
--- a/sys/dev/pci/ehci_pci.c
+++ b/sys/dev/pci/ehci_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci_pci.c,v 1.5 2005/03/07 11:12:04 pascoe Exp $ */
+/* $OpenBSD: ehci_pci.c,v 1.6 2005/04/11 08:09:32 dlg Exp $ */
/* $NetBSD: ehci_pci.c,v 1.15 2004/04/23 21:13:06 itojun Exp $ */
/*
@@ -53,7 +53,6 @@ __KERNEL_RCSID(0, "$NetBSD: ehci_pci.c,v 1.15 2004/04/23 21:13:06 itojun Exp $")
#include <dev/pci/pcidevs.h>
#include <dev/pci/pcivar.h>
-#include <dev/pci/usb_pci.h>
#include <dev/usb/usb.h>
#include <dev/usb/usbdi.h>
@@ -116,8 +115,6 @@ ehci_pci_attach(struct device *parent, struct device *self, void *aux)
const char *vendor;
char *devname = sc->sc.sc_bus.bdev.dv_xname;
usbd_status r;
- int ncomp;
- struct usb_pci *up;
#if defined(__NetBSD__)
char devinfo[256];
@@ -195,22 +192,6 @@ ehci_pci_attach(struct device *parent, struct device *self, void *aux)
if (sc->sc.sc_id_vendor == PCI_VENDOR_VIATECH)
sc->sc.sc_flags |= EHCIF_DROPPED_INTR_WORKAROUND;
- /*
- * Find companion controllers. According to the spec they always
- * have lower function numbers so they should be enumerated already.
- */
- ncomp = 0;
- TAILQ_FOREACH(up, &ehci_pci_alldevs, next) {
- if (up->bus == pa->pa_bus && up->device == pa->pa_device) {
- DPRINTF(("ehci_pci_attach: companion %s\n",
- USBDEVNAME(up->usb->bdev)));
- sc->sc.sc_comps[ncomp++] = up->usb;
- if (ncomp >= EHCI_COMPANION_MAX)
- break;
- }
- }
- sc->sc.sc_ncomp = ncomp;
-
ehci_pci_takecontroller(sc);
r = ehci_init(&sc->sc);
if (r != USBD_NORMAL_COMPLETION) {