From: Peter Chen Date: Mon, 17 Aug 2015 02:23:03 +0000 (+0800) Subject: usb: host: ehci-sys: delete useless bus_to_hcd conversion X-Git-Tag: v3.2.72~63 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=586491f5bed09e099499642b3ad3ffdbe6f240b5;p=pandora-kernel.git usb: host: ehci-sys: delete useless bus_to_hcd conversion commit 0521cfd06e1ebcd575e7ae36aab068b38df23850 upstream. The ehci platform device's drvdata is the pointer of struct usb_hcd already, so we doesn't need to call bus_to_hcd conversion again. Signed-off-by: Peter Chen Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman [bwh: Backported to 3.2: Unfortunately some EHCI platform sub-drivers point drvdata to a private structure, so only create and remove the attributes if drvdata has been set as expected.] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed