diff options
| author | Chancel Liu <chancel.liu@nxp.com> | 2026-09-23 15:13:00 +0900 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-09-23 14:22:59 +0200 |
| commit | 07bcfafa4719046cca821917aa01e74ed7afef4b (patch) | |
| tree | 19a02b28d680910b841c0986e5f99cf542468db3 /include/linux/debugobjects.h | |
| parent | fe15e876d9ee7a205aeafa3dbadd358954ffc901 (diff) | |
ASoC: codecs: wm8955: Move regulator 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 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() to the i2c probe so the supplies are
tied to the physical device lifetime.
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Link: https://patch.msgid.link/20260923061305.4041197-17-chancel.liu@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
