|
@@ -47,6 +47,9 @@ int usb_choose_configuration(struct usb_device *udev)
|
|
|
int insufficient_power = 0;
|
|
|
struct usb_host_config *c, *best;
|
|
|
|
|
|
+ if (usb_device_is_owned(udev))
|
|
|
+ return 0;
|
|
|
+
|
|
|
best = NULL;
|
|
|
c = udev->config;
|
|
|
num_configs = udev->descriptor.bNumConfigurations;
|
|
@@ -160,9 +163,7 @@ static int generic_probe(struct usb_device *udev)
|
|
|
/* Choose and set the configuration. This registers the interfaces
|
|
|
* with the driver core and lets interface drivers bind to them.
|
|
|
*/
|
|
|
- if (usb_device_is_owned(udev))
|
|
|
- ; /* Don't configure if the device is owned */
|
|
|
- else if (udev->authorized == 0)
|
|
|
+ if (udev->authorized == 0)
|
|
|
dev_err(&udev->dev, "Device is not authorized for usage\n");
|
|
|
else {
|
|
|
c = usb_choose_configuration(udev);
|