mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-19 16:19:07 +07:00
spi: jcore: disable clock when registering spi conroller failed
When probe function fails in registering the spi controller, the clock should remain disabled. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Takuo Koguchi <takuo.koguchi.sw@hitachi.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
4fbd8d194f
commit
16eab16ef9
@ -198,8 +198,10 @@ static int jcore_spi_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
/* Register our spi controller */
|
/* Register our spi controller */
|
||||||
err = devm_spi_register_master(&pdev->dev, master);
|
err = devm_spi_register_master(&pdev->dev, master);
|
||||||
if (err)
|
if (err) {
|
||||||
|
clk_disable(clk);
|
||||||
goto exit;
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user