ASoC: ti: omap-mcbsp: duplicate sysfs error
authorDavid Owens <daowens01@gmail.com>
Mon, 20 Jun 2022 18:37:43 +0000 (13:37 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 7 Jul 2022 16:16:21 +0000 (17:16 +0100)
commitf0d96937d31c4615a6418e4bed5cee50a952040e
treed380c2d70c6aab3a0e88d66c832e13d4dc13bec4
parent242a88ff27b23cbf626f9764955d91200f12b53a
ASoC: ti: omap-mcbsp: duplicate sysfs error

Convert to managed versions of sysfs and clk allocation to simplify
unbinding and error handling in probe.  Managed sysfs node
creation specifically addresses the following error seen the second time
probe is attempted after sdma_pcm_platform_register() previously requsted
probe deferral:

sysfs: cannot create duplicate filename '/devices/platform/68000000.ocp/49022000.mcbsp/max_tx_thres'

Signed-off-by: David Owens <dowens@precisionplanting.com>
Link: https://lore.kernel.org/r/20220620183744.3176557-1-dowens@precisionplanting.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/omap-mcbsp-priv.h
sound/soc/ti/omap-mcbsp-st.c
sound/soc/ti/omap-mcbsp.c