]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: stm32: sai: add missing put_device()
authorWen Yang <yellowriver2010@hotmail.com>
Sat, 9 Feb 2019 10:41:09 +0000 (10:41 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 14 Feb 2019 13:12:07 +0000 (13:12 +0000)
commit1c3816a194870e7a6622345dab7fb56c7d708613
tree0ed941bc9963653f26d8cc531815974d7278dea4
parent0f928c19b646f6af39ccf7481a546e5da616bb78
ASoC: stm32: sai: add missing put_device()

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>
sound/soc/stm/stm32_sai.c