Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1444518 > unrolled thread

Re: [PATCH 1/1] mfd: qcom_rpm: add missing of_node_put after calling of_parse_phandle

Started byBjorn Andersson <bjorn.andersson@linaro.org>
First post2016-07-15 21:00 +0200
Last post2016-07-15 21:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/1] mfd: qcom_rpm: add missing of_node_put after calling  of_parse_phandle Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-07-15 21:00 +0200

#1444518 — Re: [PATCH 1/1] mfd: qcom_rpm: add missing of_node_put after calling of_parse_phandle

FromBjorn Andersson <bjorn.andersson@linaro.org>
Date2016-07-15 21:00 +0200
SubjectRe: [PATCH 1/1] mfd: qcom_rpm: add missing of_node_put after calling of_parse_phandle
Message-ID<rVgv7-202-11@gated-at.bofh.it>
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 <bjorn.andersson@sonymobile.com>

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

Regards,
Bjorn

> Cc: Lee Jones <lee.jones@linaro.org>
> Signed-off-by: Peter Chen <peter.chen@nxp.com>
> ---
>  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
> 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web