Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 000d64a7 authored by Meng Wang's avatar Meng Wang Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm8952: use devm_regulator_get to correct regulator ref



During bootup, probe function will get called multiple times until
sound card is registered. And it calls msm8952_init_wsa_switch_supply
for each probe. If registeration fails, it'll not call
regulator_put to decrease regulator ref. In regulator consumers,
there are multiple sound-msm-vdd-wsa-switch.
Use devm_regulator_get instead of regulator_get to correct regulator
ref.

Change-Id: Ie270d235102f784241e3bf9566b811bbda22e419
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent 8ca03863
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment