Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338670
b: refs/heads/master
c: c13b86a
h: refs/heads/master
v: v3
  • Loading branch information
Hindin Joseph authored and Greg Kroah-Hartman committed Nov 16, 2012
1 parent 31b2a15 commit 6ab2f19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d94e16be70d34d139ec3c7882ed0283b5ac074d
refs/heads/master: c13b86a336d089f248293776a853252fbca15c26
7 changes: 4 additions & 3 deletions trunk/drivers/usb/core/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 6ab2f19

Please sign in to comment.