summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChancel Liu <chancel.liu@nxp.com>2026-09-23 15:12:49 +0900
committerMark Brown <broonie@kernel.org>2026-09-23 14:22:49 +0200
commitd009170e12addcaba9fb42b6be000ed4b901144e (patch)
tree44f00f737057e28f67b14cea2492fc6ab86a6f83 /include/linux
parent99fff20db8ded3003e4d525d8db34f731316ea92 (diff)
ASoC: codecs: es8316: 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 es8316_i2c_probe() so the clk reference is tied to the i2c device lifetime. Signed-off-by: Chancel Liu <chancel.liu@nxp.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Link: https://patch.msgid.link/20260923061305.4041197-6-chancel.liu@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions