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

Commit 5f985fb4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wcnss: Check the return value of clk_set_parent() when sample clock"

parents 331eefcf c985af17
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -740,7 +740,9 @@ void wcnss_log_debug_regs_on_bite(void)
	wcnss_debug_mux = clk_get(&pdev->dev, "wcnss_debug");

	if (!IS_ERR(measure) && !IS_ERR(wcnss_debug_mux)) {
		clk_set_parent(measure, wcnss_debug_mux);
		if (clk_set_parent(measure, wcnss_debug_mux))
			return;

		clk_rate = clk_get_rate(measure);
		pr_debug("wcnss: clock frequency is: %luHz\n", clk_rate);