OSDN Git Service

ASoC: stm32: sai: add missing put_device()
authorWen Yang <yellowriver2010@hotmail.com>
Sat, 9 Feb 2019 10:41:09 +0000 (10:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:21:35 +0000 (09:21 +0100)
commitf0b7d56f1fd58b7a45c2ebe06fa96eea68eb2ea3
treecebf521ee74b154783e836c1e688b19ad8b47e17
parent86c823d4a99ceb869f53320a0cbbe721d8f2c84c
ASoC: stm32: sai: add missing put_device()

commit 1c3816a194870e7a6622345dab7fb56c7d708613 upstream.

The of_find_device_by_node() takes a reference to the underlying device
structure, we should release that reference.

Fixes: 7dd0d835582f ("ASoC: stm32: sai: simplify sync modes management")
Signed-off-by: Wen Yang <yellowriver2010@hotmail.com>
Acked-by: Olivier Moysan <olivier.moysan@st.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/stm/stm32_sai.c