summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/bus_autoconf/bus_autoconf.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/tools/bus_autoconf/bus_autoconf.c b/tools/tools/bus_autoconf/bus_autoconf.c
index 68688af..0f7dbd5 100644
--- a/tools/tools/bus_autoconf/bus_autoconf.c
+++ b/tools/tools/bus_autoconf/bus_autoconf.c
@@ -148,15 +148,8 @@ usb_dump(struct usb_device_id *id, uint32_t nid)
usb_dump_sub(id, &info);
- if (info.is_iface) {
+ if (info.is_any) {
printf("nomatch 10 {\n"
- " match \"system\" \"USB\";\n"
- " match \"subsystem\" \"INTERFACE\";\n"
- " match \"mode\" \"%s\";\n", mode);
- } else if (info.is_any) {
- printf("nomatch 10 {\n"
- " match \"system\" \"USB\";\n"
- " match \"subsystem\" \"DEVICE\";\n"
" match \"mode\" \"%s\";\n", mode);
} else {
return (n);
OpenPOWER on IntegriCloud