diff options
| author | Chancel Liu <chancel.liu@nxp.com> | 2026-09-23 15:12:54 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-23 14:22:54 +0200 |
| commit | b5c9df40ca561ac61df68834c667400640a24f75 (patch) | |
| tree | 46126bcaf9fedaedf695577d62df576b53760a51 /include/linux/timerqueue.h | |
| parent | e68e66353b8e3eb9e7d88c398a11af0cc4d2915d (diff) | |
ASoC: codecs: rt5616: Move mclk acquisition to the i2c probe
component->dev is the underlying i2c device whose devres is only
released on physical device removal, not on ASoC card unbind. Getting
the codec clock with devm_clk_get_optional(component->dev, ...) in the
component probe therefore leaks a clk reference on every card
bind/unbind cycle.
Move the devm_clk_get_optional() to rt5616_i2c_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-11-chancel.liu@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
