pwm: lpss: Remove ->free() callback
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 9 Dec 2015 14:05:59 +0000 (16:05 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 16 Dec 2015 15:31:27 +0000 (16:31 +0100)
commitc7b91b33cf446ec09eedf4594cff8d7b85ef6870
treedaffc01445932acf103e1cd1cec00df45de82b41
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
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>
drivers/pwm/pwm-lpss.c