diff options
-rw-r--r-- | drivers/usb/core/driver.c | 4 | ||||
-rw-r--r-- | scripts/mod/file2alias.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index 7c3aaa9c5402..96d3f852f4ad 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c | |||
@@ -534,8 +534,8 @@ const struct usb_device_id *usb_match_id(struct usb_interface *interface, | |||
534 | id->driver_info is the way to create an entry that | 534 | id->driver_info is the way to create an entry that |
535 | indicates that the driver want to examine every | 535 | indicates that the driver want to examine every |
536 | device and interface. */ | 536 | device and interface. */ |
537 | for (; id->idVendor || id->bDeviceClass || id->bInterfaceClass || | 537 | for (; id->idVendor || id->idProduct || id->bDeviceClass || |
538 | id->driver_info; id++) { | 538 | id->bInterfaceClass || id->driver_info; id++) { |
539 | if (usb_match_one_id(interface, id)) | 539 | if (usb_match_one_id(interface, id)) |
540 | return id; | 540 | return id; |
541 | } | 541 | } |
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index d802b5afae89..9ddf944cce29 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -155,7 +155,7 @@ static void do_usb_entry_multi(struct usb_device_id *id, struct module *mod) | |||
155 | * Some modules (visor) have empty slots as placeholder for | 155 | * Some modules (visor) have empty slots as placeholder for |
156 | * run-time specification that results in catch-all alias | 156 | * run-time specification that results in catch-all alias |
157 | */ | 157 | */ |
158 | if (!(id->idVendor | id->bDeviceClass | id->bInterfaceClass)) | 158 | if (!(id->idVendor | id->idProduct | id->bDeviceClass | id->bInterfaceClass)) |
159 | return; | 159 | return; |
160 | 160 | ||
161 | /* Convert numeric bcdDevice range into fnmatch-able pattern(s) */ | 161 | /* Convert numeric bcdDevice range into fnmatch-able pattern(s) */ |