From: Lan Tianyu Date: Wed, 5 Sep 2012 05:44:31 +0000 (+0800) Subject: usb: make usb port a real device X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~73^2~151 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa2a9566257a3b62c328ea5d621ccf5952079dac;p=pandora-kernel.git usb: make usb port a real device This patch turns each USB port on a hub into a new struct device. This new device has the USB hub interface device as its parent. The port devices are stored in a new structure (usb_port), and an array of usb_ports are dynamically allocated once we know how many ports the USB hub has. Move the port_owner variable out of usb_hub and into this new structure. A new file will be created in the hub interface sysfs directory, so add documentation. Acked-by: Alan Stern Signed-off-by: Lan Tianyu Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed