diff options
| author | Chancel Liu <chancel.liu@nxp.com> | 2026-09-23 15:12:50 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-23 14:22:50 +0200 |
| commit | be9bc47e2569ac387289ee1cbf3dd93330a663b7 (patch) | |
| tree | b7aefcbd03d0c3c46cfcb922b66f544a8a151fab /include/linux/timerqueue.h | |
| parent | d009170e12addcaba9fb42b6be000ed4b901144e (diff) | |
ASoC: codecs: es8323: 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 es8323_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-7-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
