pwm: brcmstb: Utilize appropriate clock APIs in suspend/resume
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Wed, 4 Oct 2023 17:54:14 +0000 (10:54 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 13 Oct 2023 08:07:18 +0000 (10:07 +0200)
commite9bc4411548aaa738905d37851a0146c16b3bb21
tree1167092776d4e8197c6a02043566f81afcb5f29c
parent87e51b76c9db8c29cde573af0faf5a3e13e23960
pwm: brcmstb: Utilize appropriate clock APIs in suspend/resume

The suspend/resume functions currently utilize
clk_disable()/clk_enable() respectively which may be no-ops with certain
clock providers such as SCMI. Fix this to use clk_disable_unprepare()
and clk_prepare_enable() respectively as we should.

Fixes: 3a9f5957020f ("pwm: Add Broadcom BCM7038 PWM controller support")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-brcmstb.c