diff options
author | Jonathan Bakker <xc-racer2@live.ca> | 2019-01-28 11:13:01 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-01-28 11:24:18 -0800 |
commit | 3ca232df9921f083c3b37ba5fbc76f4d9046268b (patch) | |
tree | f9e6dac49b74e92cec38f1dbd7c6b500c185acbc /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
parent | 4d741f3dd11c2a8a11536d568f14ab0321169f3d (diff) |
Input: pwm-vibra - prevent unbalanced regulator
pwm_vibrator_stop disables the regulator, but it can be called from
multiple places, even when the regulator is already disabled. Fix this
by using regulator_is_enabled check when starting and stopping device.
Signed-off-by: Jonathan Bakker <xc-racer2@live.ca>
Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions