On Fri 15 Jul 02:38 PDT 2016, Peter Chen wrote:

> 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]>

Reviewed-by: Bjorn Andersson <[email protected]>

Regards,
Bjorn

> Cc: Lee Jones <[email protected]>
> Signed-off-by: Peter Chen <[email protected]>
> ---
>  drivers/mfd/qcom_rpm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mfd/qcom_rpm.c b/drivers/mfd/qcom_rpm.c
> index 2e44323..ecca115 100644
> --- a/drivers/mfd/qcom_rpm.c
> +++ b/drivers/mfd/qcom_rpm.c
> @@ -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);
>  
> -- 
> 1.9.1
> 

Reply via email to