spi: meson-spicc: fix a wrong goto jump for avoiding memory leak.
authorzpershuai <zpershuai@gmail.com>
Sun, 13 Jun 2021 05:29:32 +0000 (13:29 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 14 Jun 2021 14:05:01 +0000 (15:05 +0100)
commit95730d5eb73170a6d225a9998c478be273598634
tree9aa33cbf1e370abc487de0d1c7eb8cb1143dbc58
parent3acbacfcb3a78eb53d6fa7bc1599dcdaf043465e
spi: meson-spicc: fix a wrong goto jump for avoiding memory leak.

In meson_spifc_probe function, when enable the device pclk clock is
error, it should use clk_disable_unprepare to release the core clock.

Signed-off-by: zpershuai <zpershuai@gmail.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://lore.kernel.org/r/1623562172-22056-1-git-send-email-zpershuai@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-meson-spicc.c