005-mfd-qcom_rpm-Add-missing-of_node_put-after-calling-of_parse_phandle.patch 829 B

12345678910111213141516171819202122232425
  1. From 349290fc9e761aaef6d6882721189f668ec5ff49 Mon Sep 17 00:00:00 2001
  2. From: Peter Chen <[email protected]>
  3. Date: Fri, 15 Jul 2016 17:38:46 +0800
  4. Subject: mfd: qcom_rpm: Add missing of_node_put after calling of_parse_phandle
  5. of_node_put needs to be called when the device node which is got
  6. from of_parse_phandle has finished using.
  7. Signed-off-by: Peter Chen <[email protected]>
  8. Reviewed-by: Bjorn Andersson <[email protected]>
  9. Signed-off-by: Lee Jones <[email protected]>
  10. ---
  11. drivers/mfd/qcom_rpm.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. --- a/drivers/mfd/qcom_rpm.c
  14. +++ b/drivers/mfd/qcom_rpm.c
  15. @@ -538,6 +538,7 @@ static int qcom_rpm_probe(struct platfor
  16. }
  17. rpm->ipc_regmap = syscon_node_to_regmap(syscon_np);
  18. + of_node_put(syscon_np);
  19. if (IS_ERR(rpm->ipc_regmap))
  20. return PTR_ERR(rpm->ipc_regmap);