summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChancel Liu <chancel.liu@nxp.com>2026-09-23 15:12:59 +0900
committerMark Brown <broonie@kernel.org>2026-09-23 14:22:58 +0200
commitfe15e876d9ee7a205aeafa3dbadd358954ffc901 (patch)
tree35b947d0171fe7a70bb05d05277a2e6f893e4416 /include
parent8635b9033d039bdad19e65faf0450d738d34527f (diff)
ASoC: codecs: wm8985: Move regulator acquisition to the bus probe
component->dev is the underlying i2c/spi device whose devres is only released on physical device removal, not on ASoC card unbind. Getting the regulator supplies with devm_regulator_bulk_get(component->dev, ...) in the component probe therefore leaks the regulator references on every card bind/unbind cycle. Move the devm_regulator_bulk_get() into a helper called from the i2c and spi probes so the supplies are tied to the physical device lifetime. Signed-off-by: Chancel Liu <chancel.liu@nxp.com> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20260923061305.4041197-16-chancel.liu@oss.nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions