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)
committerMark Brown <broonie@kernel.org>
Wed, 2 Jun 2021 11:03:26 +0000 (12:03 +0100)
commitf131767eefc47de2f8afb7950cdea78397997d66
treef1e9af64aa94b8ed8e00f494ce464ca27fcffaae
parent2ec6f20b33eb4f62ab90bdcd620436c883ec3af6
spi: spi-zynq-qspi: Fix some wrong goto jumps & missing error code

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>
drivers/spi/spi-zynq-qspi.c