svn commit: r187865 - head/sys/dev/usb2/bluetooth

Maksim Yevmenkin emax at FreeBSD.org
Wed Jan 28 12:04:40 PST 2009


Author: emax
Date: Wed Jan 28 20:04:39 2009
New Revision: 187865
URL: http://svn.freebsd.org/changeset/base/187865

Log:
  Make ng_ubt2 (aka usb2_bluetooth_ng) driver only attach as "generic" driver
  
  Reviewed by:	HPS

Modified:
  head/sys/dev/usb2/bluetooth/ng_ubt2.c

Modified: head/sys/dev/usb2/bluetooth/ng_ubt2.c
==============================================================================
--- head/sys/dev/usb2/bluetooth/ng_ubt2.c	Wed Jan 28 19:58:05 2009	(r187864)
+++ head/sys/dev/usb2/bluetooth/ng_ubt2.c	Wed Jan 28 20:04:39 2009	(r187865)
@@ -406,6 +406,9 @@ ubt_probe(device_t dev)
 	if (uaa->info.bIfaceIndex != 0)
 		return (ENXIO);
 
+	if (uaa->use_generic == 0)
+		return (ENXIO);
+
 	if (usb2_lookup_id_by_uaa(ubt_ignore_devs,
 			sizeof(ubt_ignore_devs), uaa) == 0)
 		return (ENXIO);


More information about the svn-src-all mailing list