usb: move struct usb_device->children to struct usb_hub_port->child
authorLan Tianyu <tianyu.lan@intel.com>
Fri, 11 May 2012 08:08:30 +0000 (16:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 00:08:41 +0000 (17:08 -0700)
commitbebc56d58dc780539777d2b1ca80df5566e2ad87
treee24d45842809c559c98abb6fb6b2db1445264220
parentf397d7c4c5e8a1eb93f2ed15808a509318ccf1dd
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>
drivers/staging/usbip/usbip_common.c
drivers/usb/core/devices.c
drivers/usb/core/hub.c
drivers/usb/host/r8a66597-hcd.c
include/linux/usb.h