From: Kishon Vijay Abraham I Date: Tue, 21 Aug 2012 09:26:16 +0000 (+0530) Subject: usb: dwc3: core: fix incorrect usage of resource pointer X-Git-Tag: v3.6-rc6~19^2~5^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=066618bc350cc6035c3a0fc559a8ac02f55785a9;p=pandora-kernel.git usb: dwc3: core: fix incorrect usage of resource pointer Populate the resources for xhci afresh instead of directly using the *struct resource* of core. *resource* structure has parent, sibling, child pointers which should be filled only by resource API's. By directly using the *resource* pointer of core in xhci, these parent, sibling, child pointers are already populated even before *platform_device_add* causing side effects. Cc: stable@vger.kernel.org # v3.4, v3.5 Reported-by: Ruchika Kharwar Tested-by: Moiz Sonasath Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed