pwm: disable pwm before unexporting
authorThomas Ingleby <thomas.c.ingleby@intel.com>
Fri, 20 Jun 2014 15:26:08 +0000 (16:26 +0100)
committerThomas Ingleby <thomas.c.ingleby@intel.com>
Fri, 20 Jun 2014 15:26:08 +0000 (16:26 +0100)
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
src/pwm/pwm.c

index 6a60130..6b9067f 100644 (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);
     }