* [PATCH v2 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle
@ 2016-07-18 2:00 Peter Chen
2016-07-18 3:09 ` santosh.shilimkar
0 siblings, 1 reply; 2+ messages in thread
From: Peter Chen @ 2016-07-18 2:00 UTC (permalink / raw)
To: ssantosh; +Cc: linux-kernel, Peter Chen
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>
---
Changes for v2:
- %s/of_put_node/of_node_put
drivers/memory/emif.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c
index 04644e7..262c881 100644
--- a/drivers/memory/emif.c
+++ b/drivers/memory/emif.c
@@ -1409,8 +1409,10 @@ static struct emif_data * __init_or_module of_get_memory_device_details(
goto out;
error:
+ of_node_put(np_ddr);
return NULL;
out:
+ of_node_put(np_ddr);
return emif;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle
2016-07-18 2:00 [PATCH v2 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle Peter Chen
@ 2016-07-18 3:09 ` santosh.shilimkar
0 siblings, 0 replies; 2+ messages in thread
From: santosh.shilimkar @ 2016-07-18 3:09 UTC (permalink / raw)
To: Peter Chen; +Cc: ssantosh, linux-kernel
On 7/17/16 7:00 PM, Peter Chen wrote:
> 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>
> ---
>
> Changes for v2:
> - %s/of_put_node/of_node_put
>
> drivers/memory/emif.c | 2 ++
> 1 file changed, 2 insertions(+)
>
I will pick this up for next merge window...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-18 3:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-18 2:00 [PATCH v2 1/1] memory: emif: add missing of_node_put after calling of_parse_phandle Peter Chen
2016-07-18 3:09 ` santosh.shilimkar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).