linux_dsm_epyc7002/sound/soc/ti
Christophe JAILLET 03990fd58d
ASoC: ti: omap-mcbsp: Fix an error handling path in 'asoc_mcbsp_probe()'
If an error occurs after the call to 'omap_mcbsp_init()', the reference to
'mcbsp->fclk' must be decremented, as already done in the remove function.

This can be achieved easily by using the devm_ variant of 'clk_get()'
when the reference is taken in 'omap_mcbsp_init()'

This fixes the leak in the probe and has the side effect to simplify both
the error handling path of 'omap_mcbsp_init()' and the remove function.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Peter Ujfalusi <peter.ujflausi@ti.com>
Link: https://lore.kernel.org/r/20200512134325.252073-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-05-12 17:14:36 +01:00
..
ams-delta.c ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:52 +00:00
davinci-evm.c ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:52 +00:00
davinci-i2s.c Merge branch 'asoc-5.4' into asoc-next 2019-09-09 14:55:20 +01:00
davinci-i2s.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
davinci-mcasp.c ASoC: davinci-mcasp: Fix dma_chan refcnt leak when getting dma type 2020-04-28 13:33:56 +01:00
davinci-mcasp.h ASoC: ti: davinci-mcasp: Improve the sysclk selection 2019-12-09 18:35:37 +00:00
davinci-vcif.c ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:52 +00:00
edma-pcm.c ASoC: ti: edma-pcm: Fix for legacy dma_slave_map based channel lookup 2019-08-30 12:22:46 +01:00
edma-pcm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
Kconfig ASoC: ti: davinci-mcasp: Add support for platforms using UDMA 2020-02-11 11:47:56 +00:00
Makefile ASoC: ti: Add udma-pcm platform driver for UDMA 2020-02-11 11:47:55 +00:00
n810.c ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:52 +00:00
omap3pandora.c ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:52 +00:00
omap-abe-twl6040.c ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:52 +00:00
omap-dmic.c sound: Call cpu_latency_qos_*() instead of pm_qos_*() 2020-02-14 10:37:25 +01:00
omap-dmic.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
omap-hdmi.c ASoC: ti: omap-hdmi: consider CPU-Platform possibility 2019-06-28 15:19:15 +01:00
omap-mcbsp-priv.h ASoC: ti: Merge davinci and omap directories 2018-12-18 12:22:43 +00:00
omap-mcbsp-st.c ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:52 +00:00
omap-mcbsp.c ASoC: ti: omap-mcbsp: Fix an error handling path in 'asoc_mcbsp_probe()' 2020-05-12 17:14:36 +01:00
omap-mcbsp.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
omap-mcpdm.c sound updates for 5.7-rc1 2020-04-02 15:50:04 -07:00
omap-mcpdm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
omap-twl4030.c ASoC: ti: omap-twl4030: consider CPU-Platform possibility 2019-06-28 15:19:35 +01:00
osk5912.c ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:52 +00:00
rx51.c ASoC: ti: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:52 +00:00
sdma-pcm.c ASoC: ti: sdma-pcm: Add back the flags parameter for non standard dma names 2019-10-28 13:11:01 +00:00
sdma-pcm.h ASoC: ti: Merge davinci and omap directories 2018-12-18 12:22:43 +00:00
udma-pcm.c ASoC: ti: Add udma-pcm platform driver for UDMA 2020-02-11 11:47:55 +00:00
udma-pcm.h ASoC: ti: Add udma-pcm platform driver for UDMA 2020-02-11 11:47:55 +00:00