Author: hselasky Date: Mon Jul 18 12:03:58 2011 New Revision: 224180 URL: http://svn.freebsd.org/changeset/base/224180
Log: Only the USB root HUB thread is allowed to attach and detach drivers to and from USB devices. Remove related DEVMETHOD() lines from USB drivers. Reported by: YongHyeon PYUN MFC after: 3 days Modified: head/sys/dev/usb/net/if_aue.c head/sys/dev/usb/net/if_axe.c head/sys/dev/usb/net/if_mos.c head/sys/dev/usb/net/if_rue.c head/sys/dev/usb/net/if_udav.c Modified: head/sys/dev/usb/net/if_aue.c ============================================================================== --- head/sys/dev/usb/net/if_aue.c Mon Jul 18 10:29:16 2011 (r224179) +++ head/sys/dev/usb/net/if_aue.c Mon Jul 18 12:03:58 2011 (r224180) @@ -256,7 +256,6 @@ static device_method_t aue_methods[] = { /* bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), - DEVMETHOD(bus_driver_added, bus_generic_driver_added), /* MII interface */ DEVMETHOD(miibus_readreg, aue_miibus_readreg), Modified: head/sys/dev/usb/net/if_axe.c ============================================================================== --- head/sys/dev/usb/net/if_axe.c Mon Jul 18 10:29:16 2011 (r224179) +++ head/sys/dev/usb/net/if_axe.c Mon Jul 18 12:03:58 2011 (r224180) @@ -239,7 +239,6 @@ static device_method_t axe_methods[] = { /* bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), - DEVMETHOD(bus_driver_added, bus_generic_driver_added), /* MII interface */ DEVMETHOD(miibus_readreg, axe_miibus_readreg), Modified: head/sys/dev/usb/net/if_mos.c ============================================================================== --- head/sys/dev/usb/net/if_mos.c Mon Jul 18 10:29:16 2011 (r224179) +++ head/sys/dev/usb/net/if_mos.c Mon Jul 18 12:03:58 2011 (r224180) @@ -222,7 +222,6 @@ static device_method_t mos_methods[] = { /* bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), - DEVMETHOD(bus_driver_added, bus_generic_driver_added), /* MII interface */ DEVMETHOD(miibus_readreg, mos_miibus_readreg), Modified: head/sys/dev/usb/net/if_rue.c ============================================================================== --- head/sys/dev/usb/net/if_rue.c Mon Jul 18 10:29:16 2011 (r224179) +++ head/sys/dev/usb/net/if_rue.c Mon Jul 18 12:03:58 2011 (r224180) @@ -188,7 +188,6 @@ static device_method_t rue_methods[] = { /* Bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), - DEVMETHOD(bus_driver_added, bus_generic_driver_added), /* MII interface */ DEVMETHOD(miibus_readreg, rue_miibus_readreg), Modified: head/sys/dev/usb/net/if_udav.c ============================================================================== --- head/sys/dev/usb/net/if_udav.c Mon Jul 18 10:29:16 2011 (r224179) +++ head/sys/dev/usb/net/if_udav.c Mon Jul 18 12:03:58 2011 (r224180) @@ -147,7 +147,6 @@ static device_method_t udav_methods[] = /* bus interface */ DEVMETHOD(bus_print_child, bus_generic_print_child), - DEVMETHOD(bus_driver_added, bus_generic_driver_added), /* MII interface */ DEVMETHOD(miibus_readreg, udav_miibus_readreg), _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"