diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2014-05-22 23:24:59 -0700 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-26 14:34:54 +0100 |
commit | f451e48d8e1cae07d55b4a5b558c008cd4dc9a73 (patch) | |
tree | c566a30ae73588513e240700aa10cd3a4094b946 /sound/soc/sh/rcar/src.c | |
parent | e6b0d896ab0597d37422cae3cef3e789431549eb (diff) | |
download | op-kernel-dev-f451e48d8e1cae07d55b4a5b558c008cd4dc9a73.zip op-kernel-dev-f451e48d8e1cae07d55b4a5b558c008cd4dc9a73.tar.gz |
ASoC: rsnd: DT node clean up by using the of_node_put()
Driver needs to call of_node_put() after of_get_chile_by_name()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/sh/rcar/src.c')
-rw-r--r-- | sound/soc/sh/rcar/src.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 7da87cd..61009c44 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c @@ -598,18 +598,21 @@ static void rsnd_of_parse_src(struct platform_device *pdev, nr = of_get_child_count(src_node); if (!nr) - return; + goto rsnd_of_parse_src_end; src_info = devm_kzalloc(dev, sizeof(struct rsnd_src_platform_info) * nr, GFP_KERNEL); if (!src_info) { dev_err(dev, "src info allocation error\n"); - return; + goto rsnd_of_parse_src_end; } info->src_info = src_info; info->src_info_nr = nr; + +rsnd_of_parse_src_end: + of_node_put(src_node); } int rsnd_src_probe(struct platform_device *pdev, |