spi: fix return value check in bcm2835_spi_probe()

in bcm2835_spi_probe(), clk_prepare_enable() may fail, therefore,
the return value of clk_prepare_enable() should be checked, and
the function should return error if clk_prepare_enable() fails.

Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Link: https://lore.kernel.org/r/20230720140859.33883-1-ruc_gongyuanjun@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Yuanjun Gong 2023-07-20 22:08:59 +08:00 • committed by Mark Brown
commit 1e7dae6851
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0