diff options
| author | Jack Pham <jackp@codeaurora.org> | 2016-08-12 16:18:13 -0700 |
|---|---|---|
| committer | Jack Pham <jackp@codeaurora.org> | 2016-09-09 15:40:54 -0700 |
| commit | abc22dbb3577fdb1e7f13b8c9f4887b500db6ca8 (patch) | |
| tree | b7165138effb822198e717282fe6474bdc5a6f64 /kernel/sysctl_binary.c | |
| parent | c6855ffd7f2bab457b4be5c383110868e662cedf (diff) | |
usb: pd: Fix unbalanced vconn regulator disable
Make sure to only call regulator_disable() on VCONN only if
it was previously enabled, else it could result in an
unbalanced disable state. Subsequent enables would then be
no-ops and the regulator would not actually turn on.
Change-Id: I67a6ad6d2bc036a63714403e2eed8c0577ef0246
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
