pwm: starfive: Use pm_runtime functions to disable clock when the device being removed
authorHal Feng <hal.feng@starfivetech.com>
Wed, 30 Nov 2022 07:15:11 +0000 (15:15 +0800)
committerHal Feng <hal.feng@starfivetech.com>
Wed, 30 Nov 2022 07:15:11 +0000 (15:15 +0800)
commitb6038e7a01deb91ba1cb86ffcf5c3cc8cab1751a
treede87fea1a9a5c297271d2b84c3e4c59eaf8b720e
parent48618cd96b94dd40fe95b5e849dca5ad1db3081e
pwm: starfive: Use pm_runtime functions to disable clock when the device being removed

So this can avoid disabling the pwm clock again when
the pwm device is suspended and being removed.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
drivers/pwm/pwm-starfive-ptc.c