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

Commit 90f05606 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

asoc: codec: swr-haptics: update slave-vdd regulator control logic



Update the slave-vdd regulator control logic to avoid unbalanced
regulator_enable() regulator_disable() calls. Meanwhile, correct
the jump label when bailing out from soundwire enumeration failure.
This helps to avoid the regulator_put() call in the device remove
process throwing a warning for a dangling regulator enable status.

Change-Id: I89157f5f9177db69bbbf6aedcc8e605c43a7584e
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
parent 0f28ed9d
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