]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: atmel-quadspi: Add missing check for clk_prepare
authorChen Ni <nichen@iscas.ac.cn>
Wed, 15 May 2024 08:40:28 +0000 (16:40 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 27 May 2024 00:33:39 +0000 (01:33 +0100)
commitef901b38d3a4610c4067cd306c1a209f32e7ca31
tree111eaf4ade26b38c7018b6b724e9305534e25251
parent61cabbd5ef7625fe5ece4aa16ccc21c91bc2fc8f
spi: atmel-quadspi: Add missing check for clk_prepare

Add check for the return value of clk_prepare() and return the error if
it fails in order to catch the error.

Fixes: 4a2f83b7f780 ("spi: atmel-quadspi: add runtime pm support")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Link: https://msgid.link/r/20240515084028.3210406-1-nichen@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/atmel-quadspi.c