diff options
author | Peter Chen <peter.chen@nxp.com> | 2016-08-25 17:19:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-31 07:05:43 -0400 |
commit | 7f73b0b9faa11446f73dba02811f928a230773c5 (patch) | |
tree | 92c59c5784d95b91f12b4a96a4514bc462ea1c7e /drivers/hwtracing | |
parent | 2a18d7267a566b6be623893b5b5147ae5125d2ca (diff) |
hwtracing: coresight: of_coresight: 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: linux-arm-kernel@lists.infradead.org
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwtracing')
-rw-r--r-- | drivers/hwtracing/coresight/of_coresight.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index 18f1c8c4776b..629e031b7456 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c | |||
@@ -184,6 +184,7 @@ struct coresight_platform_data *of_get_coresight_platform_data( | |||
184 | break; | 184 | break; |
185 | } | 185 | } |
186 | } | 186 | } |
187 | of_node_put(dn); | ||
187 | 188 | ||
188 | return pdata; | 189 | return pdata; |
189 | } | 190 | } |