usb: Create link files between child device and usb port device.
authorLan Tianyu <tianyu.lan@intel.com>
Sat, 19 Jan 2013 17:53:33 +0000 (01:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 00:10:46 +0000 (16:10 -0800)
commitfde26380315d7d57816efc143b7924c82dba764d
treefd715e34b12903d40f0f30b7c8b7359ab8e31826
parentcef7468caff29d3333fba4d0ececd82063ce80d5
usb: Create link files between child device and usb port device.

To show the relationship between usb port and child device,
add link file "port" under usb device's sysfs directoy and
"device" under usb port device's sysfs directory. They are linked
to each other.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c