Skip to content
Unverified Commit a90a987e authored by Yuanjun Gong's avatar Yuanjun Gong Committed by Mark Brown
Browse files

spi: use devm_clk_get_enabled() in mcfqspi_probe()



in mcfqspi_probe(), the return value of function
clk_prepare_enable() should be checked, since it may fail.
using devm_clk_get_enabled() instead of devm_clk_get() and
clk_prepare_enable() can avoid this problem.

Signed-off-by: default avatarYuanjun Gong <ruc_gongyuanjun@163.com>
Link: https://lore.kernel.org/r/20230720140909.34084-1-ruc_gongyuanjun@163.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1e7dae68
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment