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

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Mon Jul 7 02:33:00 PDT 2025


Il 04/07/25 19:27, Uwe Kleine-König ha scritto:
> 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.
> 

I don't like gotos, but admittedly that's the cleanest option, so:

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>

Cheers,
Angelo



More information about the Linux-mediatek mailing list