summaryrefslogtreecommitdiffstats
path: root/sound/i2c/cs8427.c
diff options
context:
space:
mode:
authorZheyu Ma <zheyuma97@gmail.com>2022-04-05 14:10:38 +0200
committerMark Brown <broonie@kernel.org>2022-04-07 19:29:41 +0200
commit92ccbf17eeacf510cf1eed9c252d9332ca24f02d (patch)
tree99f052a45427c31f19fbe9af8da5c76d6c0e4682 /sound/i2c/cs8427.c
parentASoC: Intel: soc-acpi: correct device endpoints for max98373 (diff)
downloadlinux-92ccbf17eeacf510cf1eed9c252d9332ca24f02d.tar.xz
linux-92ccbf17eeacf510cf1eed9c252d9332ca24f02d.zip
ASoC: wm8731: Disable the regulator when probing fails
When the driver fails during probing, the driver should disable the regulator, not just handle it in wm8731_hw_init(). The following log reveals it: [ 17.812483] WARNING: CPU: 1 PID: 364 at drivers/regulator/core.c:2257 _regulator_put+0x3ec/0x4e0 [ 17.815958] RIP: 0010:_regulator_put+0x3ec/0x4e0 [ 17.824467] Call Trace: [ 17.824774] <TASK> [ 17.825040] regulator_bulk_free+0x82/0xe0 [ 17.825514] devres_release_group+0x319/0x3d0 [ 17.825882] i2c_device_probe+0x766/0x940 [ 17.829198] i2c_register_driver+0xb5/0x130 Signed-off-by: Zheyu Ma <zheyuma97@gmail.com> Link: https://lore.kernel.org/r/20220405121038.4094051-1-zheyuma97@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/i2c/cs8427.c')
0 files changed, 0 insertions, 0 deletions