From: Peter Chen Date: Wed, 24 Dec 2014 03:33:17 +0000 (+0800) Subject: Revert "usb: chipidea: remove duplicate dev_set_drvdata for host_start" X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~270^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24c498df1c70fa3b8b4df18f4424904bf014c709;p=pandora-kernel.git Revert "usb: chipidea: remove duplicate dev_set_drvdata for host_start" This reverts commit 14b4099c074f2ddf4d84b22d370170e61b527529 It moved platform_set_drvdata(pdev, ci) before hcd is created, and the hcd will assign itself as ci controller's drvdata during the hcd creation function (in usb_create_shared_hcd), so it overwrites the real ci's drvdata which we want to use. So, if the controller is at host mode, the system suspend API will get the wrong struct ci_hdrc pointer, and cause the oops. Signed-off-by: Peter Chen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed