[PATCH] pwm: mediatek: Ensure to disable clocks in error path

Uwe Kleine-König u.kleine-koenig at baylibre.com
Sat Jul 5 00:35:15 PDT 2025


Hello,

On Fri, Jul 04, 2025 at 07:27:27PM +0200, Uwe Kleine-König wrote:
> After enabling the clocks each error path must disable the clocks again.
> One of them failed to do so. Unify the error paths to use goto to make it
> harder for future changes to add a similar bug.
> 
> Fixes: 7ca59947b5fc ("pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>

I applied this patch already to my next branch and will send it together
with
https://lore.kernel.org/r/20250704172416.626433-2-u.kleine-koenig@baylibre.com
to Linus next week.

I'm still accepting acks and reviews anyhow.

Best regards
Uwe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20250705/e9220e87/attachment-0001.sig>


More information about the Linux-mediatek mailing list