diff options
| author | 2026-09-23 15:12:52 +0900 | |
|---|---|---|
| committer | 2026-09-23 14:22:52 +0200 | |
| commit | 10a45015665e8cb4f865106015246d472d7d7a3d (patch) | |
| tree | 14c29822565907d553de39f1329fbb5f0b22ee7d /scripts/Makefile.thinlto | |
| parent | ASoC: codecs: es8311: Move mclk acquisition to the i2c probe (diff) | |
ASoC: codecs: es8328: Move clk acquisition to the bus probe
component->dev is the underlying i2c/spi device whose devres is only
released on physical device removal, not on ASoC card unbind. Getting
the codec clock with devm_clk_get(component->dev, ...) in the component
probe therefore leaks a clk reference on every card bind/unbind cycle.
Move the devm_clk_get() to es8328_probe() (the shared i2c/spi bus level
probe) so the clk reference is tied to the physical device lifetime.
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20260923061305.4041197-9-chancel.liu@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
