diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-16 18:17:04 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-05-16 18:17:04 +0000 |
commit | 5bfd92ef4012f7d92a2adea453d26cc429e33dbc (patch) | |
tree | a083dafa50f15f8743bae1acdd34cd0e8bc8f9a1 /sys/dev/cardbus/ehci_cardbus.c | |
parent | ce215790cb23f45d4319b9c6fee564b6e57936c4 (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.c | 7 |
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) { |