]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
clk: lmk04832: Don't disable vco clock on probe fail
authorMike Looijmans <mike.looijmans@topic.nl>
Wed, 2 Aug 2023 06:40:59 +0000 (08:40 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 23 Aug 2023 22:47:35 +0000 (15:47 -0700)
commite63227c83cff755c4d3b326d317d2e88451a637f
tree34564950b50fd202e29dc29dccc8d5817fb0b3b5
parentf6d6c11f417a50caca9d30d63f0f85c311c09869
clk: lmk04832: Don't disable vco clock on probe fail

The probe() method never calls clk_prepare_enable(), so it should not
call clk_disable_unprepare() for the vco.clk in the error path. Fixes
a "lmk-vco already disabled" BUG when probe fails.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Link: https://lore.kernel.org/r/20230802064100.15793-2-mike.looijmans@topic.nl
Reviewed-by: Liam Beguin <liambeguin@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-lmk04832.c