aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-qcom-qspi.c
diff options
context:
space:
mode:
authorYuanjun Gong <ruc_gongyuanjun@163.com>2023-07-20 22:09:09 +0800
committerMark Brown <broonie@kernel.org>2023-07-20 15:29:11 +0100
commita90a987ebe008c941338285764e5afc0d663f54d (patch)
tree286b827fa4f7a0fb14aa28d9efbbe81dbfff007f /drivers/spi/spi-qcom-qspi.c
parentspi: fix return value check in bcm2835_spi_probe() (diff)
downloadlinux-rng-a90a987ebe008c941338285764e5afc0d663f54d.tar.xz
linux-rng-a90a987ebe008c941338285764e5afc0d663f54d.zip
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: Yuanjun Gong <ruc_gongyuanjun@163.com> Link: https://lore.kernel.org/r/20230720140909.34084-1-ruc_gongyuanjun@163.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-qcom-qspi.c')
0 files changed, 0 insertions, 0 deletions