aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/generic.c')
-rw-r--r--drivers/usb/core/generic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/core/generic.c b/drivers/usb/core/generic.c
index 30ecac3af15a..05e6d313961e 100644
--- a/drivers/usb/core/generic.c
+++ b/drivers/usb/core/generic.c
@@ -158,7 +158,9 @@ static int generic_probe(struct usb_device *udev)
158 /* Choose and set the configuration. This registers the interfaces 158 /* Choose and set the configuration. This registers the interfaces
159 * with the driver core and lets interface drivers bind to them. 159 * with the driver core and lets interface drivers bind to them.
160 */ 160 */
161 if (udev->authorized == 0) 161 if (usb_device_is_owned(udev))
162 ; /* Don't configure if the device is owned */
163 else if (udev->authorized == 0)
162 dev_err(&udev->dev, "Device is not authorized for usage\n"); 164 dev_err(&udev->dev, "Device is not authorized for usage\n");
163 else { 165 else {
164 c = usb_choose_configuration(udev); 166 c = usb_choose_configuration(udev);