summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorGabor Juhos <j4g8y7@gmail.com>2025-09-16 19:43:46 +0200
committerMark Brown <broonie@kernel.org>2025-09-18 22:26:57 +0100
commita24802b0a2a238eaa610b0b0e87a4500a35de64a (patch)
tree47b57959e4e4e007af7caf7bdb792cfdbd2e56dc /rust/helpers/helpers.c
parentab63e9910d2d3ea4b8e6c08812258a676defcb9c (diff)
spi: spi-qpic-snand: simplify clock handling by using devm_clk_get_enabled()
The devm_clk_get_enabled() function prepares and enables the particular clock, which then automatically gets disabled and unprepared on probe failure and on device removal. Use that function instead of devm_clk_get() and remove the clk_prepare_enable()/clk_disable_unprepare() calls in order to simplify the code. This also ensures that the clocks are handled in the correct order during device removal. Signed-off-by: Gabor Juhos <j4g8y7@gmail.com> Link: https://patch.msgid.link/20250916-qpic-snand-devm_clk_get_enabled-v1-1-09953493b7f1@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions