aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/r8a66597-hcd.c
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2012-05-11 04:08:30 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 20:08:41 -0400
commitbebc56d58dc780539777d2b1ca80df5566e2ad87 (patch)
treee24d45842809c559c98abb6fb6b2db1445264220 /drivers/usb/host/r8a66597-hcd.c
parentf397d7c4c5e8a1eb93f2ed15808a509318ccf1dd (diff)
usb: move struct usb_device->children to struct usb_hub_port->child
Move child's pointer to the struct usb_hub_port since the child device is directly associated with the port. Provide usb_get_hub_child_device() to get child's pointer. Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/r8a66597-hcd.c')
-rw-r--r--drivers/usb/host/r8a66597-hcd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index c868be65e76..4c82fdf5494 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -2040,7 +2040,8 @@ static void collect_usb_address_map(struct usb_device *udev, unsigned long *map)
2040 map[udev->devnum/32] |= (1 << (udev->devnum % 32)); 2040 map[udev->devnum/32] |= (1 << (udev->devnum % 32));
2041 2041
2042 for (chix = 0; chix < udev->maxchild; chix++) { 2042 for (chix = 0; chix < udev->maxchild; chix++) {
2043 struct usb_device *childdev = udev->children[chix]; 2043 struct usb_device *childdev =
2044 usb_get_hub_child_device(udev, chix + 1);
2044 2045
2045 if (childdev) 2046 if (childdev)
2046 collect_usb_address_map(childdev, map); 2047 collect_usb_address_map(childdev, map);