summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2013-08-14 09:44:01 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-14 19:34:16 (GMT)
commite98b44e90b2e8c58c5cbd921b8509e1b7b4940d3 (patch)
treee94d9bc866f0f6107c9a09e8cbec57f6151a5a71 /fs
parent3b1280ca4b1743de3be04e9dd5907ec79d72483d (diff)
downloadlinux-fsl-qoriq-e98b44e90b2e8c58c5cbd921b8509e1b7b4940d3.tar.xz
usb: chipidea: prevent endless loop registering platform_devices when probe fails
Commit 40dcd0e ("usb: chipidea: add PTW, PTS and STS handling") introduced the following code to the ci_hdrc_probe() function: + if (!dev->of_node && dev->parent) + dev->of_node = dev->parent->of_node; This inadvertently associates the ci_hdrc device with the ci_hdrc_imx driver (which created the ci_hdrc device in the first place). This results in ci_hdrc_imx_probe() being run for the ci_hdrc device if ci_hdrc_probe() fails for some reason. ci_hdrc_imx_probe() will happily create a new ci_hdrc platform_device whose probing will likewise fail and trigger a new invocation of ci_hdrc_imx_probe() ... ad nauseam. Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de> Reviewed-and-tested-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions