summaryrefslogtreecommitdiff
path: root/sys/dev/cardbus/ehci_cardbus.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2014-05-16 18:17:04 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2014-05-16 18:17:04 +0000
commit5bfd92ef4012f7d92a2adea453d26cc429e33dbc (patch)
treea083dafa50f15f8743bae1acdd34cd0e8bc8f9a1 /sys/dev/cardbus/ehci_cardbus.c
parentce215790cb23f45d4319b9c6fee564b6e57936c4 (diff)
There is no need to remember which usb(4) device is the child of an USB
host controller because autoconf(9) already does it.
Diffstat (limited to 'sys/dev/cardbus/ehci_cardbus.c')
-rw-r--r--sys/dev/cardbus/ehci_cardbus.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/cardbus/ehci_cardbus.c b/sys/dev/cardbus/ehci_cardbus.c
index edb642c0679..49ed81cac8c 100644
--- a/sys/dev/cardbus/ehci_cardbus.c
+++ b/sys/dev/cardbus/ehci_cardbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci_cardbus.c,v 1.17 2013/04/15 09:23:00 mglocker Exp $ */
+/* $OpenBSD: ehci_cardbus.c,v 1.18 2014/05/16 18:17:03 mpi Exp $ */
/* $NetBSD: ehci_cardbus.c,v 1.6.6.3 2004/09/21 13:27:25 skrll Exp $ */
/*
@@ -162,8 +162,7 @@ ehci_cardbus_attach(struct device *parent, struct device *self, void *aux)
}
/* Attach usb device. */
- sc->sc.sc_child = config_found((void *)sc, &sc->sc.sc_bus,
- usbctlprint);
+ config_found(self, &sc->sc.sc_bus, usbctlprint);
}
int
@@ -173,7 +172,7 @@ ehci_cardbus_detach(struct device *self, int flags)
struct cardbus_devfunc *ct = sc->sc_ct;
int rv;
- rv = ehci_detach(&sc->sc, flags);
+ rv = ehci_detach(self, flags);
if (rv)
return (rv);
if (sc->sc_ih != NULL) {