Changeset 34254


Ignore:
Timestamp:
2012-11-19T11:56:09+01:00 (5 years ago)
Author:
kaloz
Message:

[generic/3.7]: fix 820-usb_add_usb_find_device_by_name.patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/patches-3.7/820-usb_add_usb_find_device_by_name.patch

    r34247 r34254  
    99+{ 
    1010+       struct usb_device *ret_dev = NULL; 
     11+       struct usb_device *childdev = NULL; 
    1112+       int child; 
    1213+ 
     
    1920+               goto exit; 
    2021+       } 
    21 + 
    2222+       /* look through all of the children of this device */ 
    23 +       for (child = 0; child < dev->maxchild; ++child) { 
    24 +               if (dev->children[child]) { 
    25 +                       usb_lock_device(dev->children[child]); 
    26 +                       ret_dev = match_device_name(dev->children[child], name); 
    27 +                       usb_unlock_device(dev->children[child]); 
     23+       usb_hub_for_each_child(dev, child, childdev) { 
     24+               if (childdev) { 
     25+                       usb_lock_device(childdev); 
     26+                       ret_dev = match_device_name(childdev, name); 
     27+                       usb_unlock_device(childdev); 
    2828+                       if (ret_dev) 
    2929+                               goto exit; 
Note: See TracChangeset for help on using the changeset viewer.