Merge "ODROID-COMMON: drivers/pwm: Prevent from totally removing PWM chip data" into odroidg12-4.9.y

This commit is contained in:
Deokgyu Yang
2021-04-14 12:53:30 +09:00
committed by Gerrit Code Review

View File

@@ -858,7 +858,9 @@ void pwm_put(struct pwm_device *pwm)
if (pwm->chip->ops->free)
pwm->chip->ops->free(pwm->chip, pwm);
#if !defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
pwm_set_chip_data(pwm, NULL);
#endif
pwm->label = NULL;
module_put(pwm->chip->ops->owner);