ASoC: rockchip: put device_node on remove
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 9 Jun 2018 22:20:54 +0000 (01:20 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jun 2018 11:54:38 +0000 (12:54 +0100)
commita56df73ba5960848f60f609c68770d2638bf1dd5
tree00fa4a036e5ecb0e583679e33f81dc061e506d73
parent187e01d0d56d1fd682dfaafb0b45d332abec6387
ASoC: rockchip: put device_node on remove

snd_rk_mc_probe() gets a couple of device nodes with of_parse_phandle(),
but there is no release of them.

The patch adds remove handler and proper error handling in the probe.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_rt5645.c