mfd: qcom_rpm: add missing of_node_put after calling of_parse_phandle
Subsystems (2)
PATCH 1/1 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.
Cc Bjorn Andersson <[email protected]>
Cc Lee Jones <[email protected]>
Signed-off-by Peter Chen <[email protected]>
--- drivers/mfd/qcom_rpm.c | 1 + 1 file changed, 1 insertion(+)
drivers/mfd/qcom_rpm.c +1 -0
@@ -538,6 +538,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);
Signature · 1 line
1.9.1
Quoted 4 lines · Peter Chen
of_node_putneeds to be called when the device node which is got fromof_parse_phandlehas finished using.Cc Bjorn Andersson <[email protected]>
Reviewed-by Bjorn Andersson <[email protected]>
Regards,
Bjorn
Quoted 21 lines
Cc Lee Jones <[email protected]>Signed-off-by Peter Chen <[email protected]>--- drivers/mfd/qcom_rpm.c | 1 + 1 file changed, 1 insertion(+)drivers/mfd/qcom_rpm.c +1
-0@@ -538,6 +538,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);Signature · 1 line
1.9.1
Lee Jones
AppliedQuoted 9 lines · Peter Chen
of_node_putneeds to be called when the device node which is got fromof_parse_phandlehas finished using.Cc Bjorn Andersson <[email protected]>Cc Lee Jones <[email protected]>Signed-off-by Peter Chen <[email protected]>--- drivers/mfd/qcom_rpm.c | 1 + 1 file changed, 1 insertion(+)
Applied, thanks.
Quoted 12 lines
drivers/mfd/qcom_rpm.c +1
-0@@ -538,6 +538,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);
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog