Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 16eab16e authored by Takuo Koguchi's avatar Takuo Koguchi Committed by Mark Brown
Browse files

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: default avatarTakuo Koguchi <takuo.koguchi.sw@hitachi.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 4fbd8d19
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -198,8 +198,10 @@ static int jcore_spi_probe(struct platform_device *pdev)

	/* Register our spi controller */
	err = devm_spi_register_master(&pdev->dev, master);
	if (err)
	if (err) {
		clk_disable(clk);
		goto exit;
	}

	return 0;