diff options
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r-- | drivers/usb/core/usb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index eb810bbe7bbc..c32811ae128f 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
@@ -140,8 +140,7 @@ static int __find_interface(struct device *dev, void *data) | |||
140 | struct find_interface_arg *arg = data; | 140 | struct find_interface_arg *arg = data; |
141 | struct usb_interface *intf; | 141 | struct usb_interface *intf; |
142 | 142 | ||
143 | /* can't look at usb devices, only interfaces */ | 143 | if (!is_usb_interface(dev)) |
144 | if (is_usb_device(dev)) | ||
145 | return 0; | 144 | return 0; |
146 | 145 | ||
147 | intf = to_usb_interface(dev); | 146 | intf = to_usb_interface(dev); |