usb: chipidea: msm: ci_hdrc_msm_probe() missing of_node_get()
authorFrank Rowand <frank.rowand@sony.com>
Tue, 18 Jul 2017 23:31:28 +0000 (16:31 -0700)
committerPeter Chen <peter.chen@nxp.com>
Wed, 19 Jul 2017 01:49:19 +0000 (09:49 +0800)
commitb74c43156c0caf392d93baae3df8e1788f799646
tree8312c5cb502b9616c2532371fc0a5a5375cdc944
parent734c58aefcc48f888e74fd082a0a2eca167e8816
usb: chipidea: msm: ci_hdrc_msm_probe() missing of_node_get()

Boot fails for qcom-apq8074-dragonboard on 4.13-rc1 with error:
OF: ERROR: Bad of_node_put() on /soc/usb@f9a55000

The error will occur if the configuration is set to:
   CONFIG_OF_OVERLAY y
   CONFIG_OF_UNITTEST y
   CONFIG_OF_DYNAMIC y
   CONFIG_OF_RESOLVE y

If CONFIG_OF_DYNAMIC is enabled then of_node_release() detects an
attempt to release a node that is still attached to the device tree.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/chipidea/ci_hdrc_msm.c