diff options
| author | Chancel Liu <chancel.liu@nxp.com> | 2026-09-23 15:12:56 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-23 14:22:55 +0200 |
| commit | c580cd416b684a4411a842010ce88bd114b75340 (patch) | |
| tree | bac3c0e559148b431891e17bdbeb2e61da6123ca /include/linux/timerqueue.h | |
| parent | cc2977e802181ce6d239734be1ce02bfdbea2380 (diff) | |
ASoC: codecs: rt5682s: 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 chain therefore leaks a clk reference on every card
bind/unbind cycle.
Move the devm_clk_get_optional() to rt5682s_i2c_probe() so the clk
reference is tied to the physical device lifetime.
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20260923061305.4041197-13-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
