summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandy.hu <andy.hu@starfivetech.com>2022-12-01 13:52:21 +0300
committerandy.hu <andy.hu@starfivetech.com>2022-12-01 13:52:21 +0300
commit247c10448e49aeb9757029e575f6747ce5e02e5a (patch)
treec4be6034fa0944523372316ea9fa728948d1ea82
parentbb4b157c6580b7fb47a6d64142dd10599376fcd1 (diff)
parentb6038e7a01deb91ba1cb86ffcf5c3cc8cab1751a (diff)
downloadlinux-247c10448e49aeb9757029e575f6747ce5e02e5a.tar.xz
Merge branch 'CR_2650_PWM_hal.feng' into 'jh7110-5.15.y-devel'
CR 2650 PWM hal.feng See merge request sdk/linux!626
-rw-r--r--drivers/pwm/pwm-starfive-ptc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pwm/pwm-starfive-ptc.c b/drivers/pwm/pwm-starfive-ptc.c
index 746e6cea5802..0874bbb49aa6 100644
--- a/drivers/pwm/pwm-starfive-ptc.c
+++ b/drivers/pwm/pwm-starfive-ptc.c
@@ -250,10 +250,9 @@ static int starfive_pwm_ptc_remove(struct platform_device *dev)
struct starfive_pwm_ptc_device *pwm = platform_get_drvdata(dev);
struct pwm_chip *chip = &pwm->chip;
- clk_disable_unprepare(pwm->clk);
pwmchip_remove(chip);
- pm_runtime_disable(&dev->dev);
+ pm_runtime_force_suspend(&dev->dev);
return 0;
}