spi: spi-zynq-qspi: Fix some wrong goto jumps & missing error code
authorzpershuai <zpershuai@gmail.com>
Thu, 27 May 2021 10:20:57 +0000 (18:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Jun 2021 12:42:48 +0000 (14:42 +0200)
commitf6d28f0e36e93570f2843abef9969681860c38e7
tree7b35f038f452967904fc68877631eba5050b6fa9
parent0ea21221dd5a914205f206835e0d43f8ca23d494
spi: spi-zynq-qspi: Fix some wrong goto jumps & missing error code

[ Upstream commit f131767eefc47de2f8afb7950cdea78397997d66 ]

In zynq_qspi_probe function, when enable the device clock is done,
the return of all the functions should goto the clk_dis_all label.

If num_cs is not right then this should return a negative error
code but currently it returns success.

Signed-off-by: zpershuai <zpershuai@gmail.com>
Link: https://lore.kernel.org/r/1622110857-21812-1-git-send-email-zpershuai@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-zynq-qspi.c