aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-lpss.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2015-12-09 09:05:59 -0500
committerThierry Reding <thierry.reding@gmail.com>2015-12-16 10:31:27 -0500
commitc7b91b33cf446ec09eedf4594cff8d7b85ef6870 (patch)
treedaffc01445932acf103e1cd1cec00df45de82b41 /drivers/pwm/pwm-lpss.c
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
pwm: lpss: Remove ->free() callback
The LPSS PWM driver calls pwm_lpss_disable() when the PWM device is released (for example unexported from sysfs). This in turn calls pm_runtime_put() which makes runtime PM count to be unbalanced if the device has not been enabled at this point. This is easy to reproduce: # cd /sys/class/pwm/pwmchip0 # echo 0 > export # echo 0 > unexport The count is unbalanced and prevents the PWM device from being powered on next time. Fix this by removing ->free() callback. There are no resources to be released anyway. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-lpss.c')
-rw-r--r--drivers/pwm/pwm-lpss.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c
index 25044104003b..3f61c50964d5 100644
--- a/drivers/pwm/pwm-lpss.c
+++ b/drivers/pwm/pwm-lpss.c
@@ -135,7 +135,6 @@ static void pwm_lpss_disable(struct pwm_chip *chip, struct pwm_device *pwm)
135} 135}
136 136
137static const struct pwm_ops pwm_lpss_ops = { 137static const struct pwm_ops pwm_lpss_ops = {
138 .free = pwm_lpss_disable,
139 .config = pwm_lpss_config, 138 .config = pwm_lpss_config,
140 .enable = pwm_lpss_enable, 139 .enable = pwm_lpss_enable,
141 .disable = pwm_lpss_disable, 140 .disable = pwm_lpss_disable,