Private
Public Access
2
0

pwm: disable pwm before unexporting

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-06-20 16:26:08 +01:00
parent f035dcd341
commit 3e88578754

View File

@@ -287,6 +287,7 @@ maa_pwm_unexport_force(maa_pwm_context dev)
maa_result_t
maa_pwm_unexport(maa_pwm_context dev)
{
maa_pwm_enable(dev, 0);
if (dev->owner) {
return maa_pwm_unexport_force(dev);
}