summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2009-01-28 20:04:39 +0000
committeremax <emax@FreeBSD.org>2009-01-28 20:04:39 +0000
commitd26423e9d2b7411ee779faec583a009bab4896aa (patch)
tree7df8c3db1593affbe3f82e74727d255536294ddb /sys
parent50efccc9f04a04f03e963eee6a0f24acb1b0cec9 (diff)
downloadFreeBSD-src-d26423e9d2b7411ee779faec583a009bab4896aa.zip
FreeBSD-src-d26423e9d2b7411ee779faec583a009bab4896aa.tar.gz
Make ng_ubt2 (aka usb2_bluetooth_ng) driver only attach as "generic" driver
Reviewed by: HPS
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb2/bluetooth/ng_ubt2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb2/bluetooth/ng_ubt2.c b/sys/dev/usb2/bluetooth/ng_ubt2.c
index ba880e2..7ebe86b 100644
--- a/sys/dev/usb2/bluetooth/ng_ubt2.c
+++ b/sys/dev/usb2/bluetooth/ng_ubt2.c
@@ -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);
OpenPOWER on IntegriCloud