host controller because autoconf(9) already does it.
Breakage reported by todd@
-/* $OpenBSD: pxa2x0_ohci.c,v 1.25 2013/04/16 14:55:23 deraadt Exp $ */
+/* $OpenBSD: pxa2x0_ohci.c,v 1.26 2014/05/19 13:11:31 mpi Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
return;
}
- sc->sc.sc_child = config_found((void *)sc, &sc->sc.sc_bus,
- usbctlprint);
+ config_found(self, &sc->sc.sc_bus, usbctlprint);
}
int
struct pxaohci_softc *sc = (struct pxaohci_softc *)self;
int rv;
- rv = ohci_detach(&sc->sc, flags);
+ rv = ohci_detach(self, flags);
if (rv)
return (rv);
-/* $OpenBSD: imxehci.c,v 1.3 2013/11/26 20:33:11 deraadt Exp $ */
+/* $OpenBSD: imxehci.c,v 1.4 2014/05/19 13:11:31 mpi Exp $ */
/*
* Copyright (c) 2012-2013 Patrick Wildt <patrick@blueri.se>
*
goto intr;
}
- sc->sc.sc_child = config_found((void *)sc, &sc->sc.sc_bus,
- usbctlprint);
+ config_found(self, &sc->sc.sc_bus, usbctlprint);
goto out;
struct imxehci_softc *sc = (struct imxehci_softc *)self;
int rv;
- rv = ehci_detach(&sc->sc, flags);
+ rv = ehci_detach(self, flags);
if (rv)
return (rv);
-/* $OpenBSD: omehci.c,v 1.2 2013/11/06 19:03:07 syl Exp $ */
+/* $OpenBSD: omehci.c,v 1.3 2014/05/19 13:11:31 mpi Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
goto intr;
}
- sc->sc.sc_child = config_found((void *)sc, &sc->sc.sc_bus,
- usbctlprint);
+ config_found(self, &sc->sc.sc_bus, usbctlprint);
goto out;
struct omehci_softc *sc = (struct omehci_softc *)self;
int rv;
- rv = ehci_detach(&sc->sc, flags);
+ rv = ehci_detach(self, flags);
if (rv)
return (rv);
-/* $OpenBSD: omohci.c,v 1.2 2013/12/11 12:51:51 naddy Exp $ */
+/* $OpenBSD: omohci.c,v 1.3 2014/05/19 13:11:31 mpi Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
return;
}
- sc->sc.sc_child = config_found((void *)sc, &sc->sc.sc_bus,
- usbctlprint);
+ config_found(self, &sc->sc.sc_bus, usbctlprint);
}
int
struct omohci_softc *sc = (struct omohci_softc *)self;
int rv;
- rv = ohci_detach(&sc->sc, flags);
+ rv = ohci_detach(self, flags);
if (rv)
return (rv);
-/* $OpenBSD: sxiehci.c,v 1.3 2013/11/06 19:03:07 syl Exp $ */
+/* $OpenBSD: sxiehci.c,v 1.4 2014/05/19 13:11:31 mpi Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
goto intr;
}
- sc->sc.sc_child = config_found((void *)sc, &sc->sc.sc_bus,
- usbctlprint);
+ config_found(self, &sc->sc.sc_bus, usbctlprint);
goto out;
struct sxiehci_softc *sc = (struct sxiehci_softc *)self;
int rv;
- rv = ehci_detach(&sc->sc, flags);
+ rv = ehci_detach(self, flags);
if (rv)
return (rv);
-/* $OpenBSD: ohci_voyager.c,v 1.5 2013/04/16 14:55:22 deraadt Exp $ */
+/* $OpenBSD: ohci_voyager.c,v 1.6 2014/05/19 13:11:31 mpi Exp $ */
/* OpenBSD: ohci_pci.c,v 1.33 2008/06/26 05:42:17 ray Exp */
/* $NetBSD: ohci_pci.c,v 1.23 2002/10/02 16:51:47 thorpej Exp $ */
splx(s);
/* Attach usb device. */
- sc->sc.sc_child = config_found((void *)sc, &sc->sc.sc_bus, usbctlprint);
+ config_found(self, &sc->sc.sc_bus, usbctlprint);
}
-/* $OpenBSD: ehci_obio.c,v 1.3 2009/09/12 21:40:45 kettenis Exp $ */
+/* $OpenBSD: ehci_obio.c,v 1.4 2014/05/19 13:11:31 mpi Exp $ */
/*
* Copyright (c) 2008 Mark Kettenis
printf("\n");
/* Attach usb device. */
- sc->sc_child = config_found((void *)sc, &sc->sc_bus, usbctlprint);
+ config_found(self, &sc->sc_bus, usbctlprint);
return;