diff options
| author | Chancel Liu <chancel.liu@nxp.com> | 2026-09-23 15:12:51 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-23 14:22:51 +0200 |
| commit | 5cc3c8f7264ea83b2c597d3d71d1a4a4a515d65f (patch) | |
| tree | 2f2fe730d7079deb73cbebaea72eaf1302e4a73b /include/linux/timerqueue.h | |
| parent | be9bc47e2569ac387289ee1cbf3dd93330a663b7 (diff) | |
ASoC: codecs: es8311: 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 mclk 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 es8311_i2c_probe() so the clk
reference is tied to the i2c device lifetime.
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20260923061305.4041197-8-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
