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

Commit 8768e7b3 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Alexandre Belloni
Browse files

rtc: s3c: Jump to central exit point on getting src clock error



In other error paths in probe, centralized exit point was used so make
this consistent.

Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent fe6d94fe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -510,8 +510,7 @@ static int s3c_rtc_probe(struct platform_device *pdev)
			else
				dev_dbg(&pdev->dev,
					"probe deferred due to missing rtc src clk\n");
			clk_disable_unprepare(info->rtc_clk);
			return ret;
			goto err_src_clk;
		}
		clk_prepare_enable(info->rtc_src_clk);
	}
@@ -575,6 +574,7 @@ static int s3c_rtc_probe(struct platform_device *pdev)

	if (info->data->needs_src_clk)
		clk_disable_unprepare(info->rtc_src_clk);
err_src_clk:
	clk_disable_unprepare(info->rtc_clk);

	return ret;