diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-07-15 17:38:46 +0800 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-10-04 15:48:01 +0100 |
commit | 349290fc9e761aaef6d6882721189f668ec5ff49 (patch) | |
tree | d0bc0775db570a6519e57c0aee959d15a73f911d /drivers/mfd | |
parent | b304746c2a71fb0c001b5db93ea677d32f95b95f (diff) | |
download | linux-349290fc9e761aaef6d6882721189f668ec5ff49.tar.bz2 |
mfd: qcom_rpm: Add missing of_node_put after calling of_parse_phandle
of_node_put needs to be called when the device node which is got
from of_parse_phandle has finished using.
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/qcom_rpm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/qcom_rpm.c b/drivers/mfd/qcom_rpm.c index a74210df5969..d3300714c27b 100644 --- a/drivers/mfd/qcom_rpm.c +++ b/drivers/mfd/qcom_rpm.c @@ -589,6 +589,7 @@ static int qcom_rpm_probe(struct platform_device *pdev) } rpm->ipc_regmap = syscon_node_to_regmap(syscon_np); + of_node_put(syscon_np); if (IS_ERR(rpm->ipc_regmap)) return PTR_ERR(rpm->ipc_regmap); |