diff options
| author | Uwe Kleine-König <[email protected]> | 2025-07-04 17:27:27 +0000 |
|---|---|---|
| committer | Uwe Kleine-König <[email protected]> | 2025-07-07 06:34:44 +0000 |
| commit | 505b730ede7f5c4083ff212aa955155b5b92e574 (patch) | |
| tree | ae0fa4230a5548b15a6de0957f716dd8c09d5a82 /drivers/fpga/microchip-spi.c | |
| parent | pwm: Fix invalid state detection (diff) | |
| download | kernel-505b730ede7f5c4083ff212aa955155b5b92e574.tar.gz kernel-505b730ede7f5c4083ff212aa955155b5b92e574.zip | |
pwm: mediatek: Ensure to disable clocks in error path
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions
