mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
Merge "ODROID-COMMON: drivers/pwm: Prevent from totally removing PWM chip data" into odroidg12-4.9.y
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user