USB: dynamically allocate usb_device children pointers instead of using a fix array
authorHuajun Li <huajun.li.lee@gmail.com>
Mon, 12 Mar 2012 13:00:19 +0000 (21:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Mar 2012 21:24:07 +0000 (14:24 -0700)
Non-hub device has no child, and even a real USB hub has ports far
less than USB_MAXCHILDREN, so there is no need using a fix array for
child devices, just allocate it dynamically according real port
number.

Signed-off-by: Huajun Li <huajun.li.lee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

No differences found