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

Commit 7888bbf8 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: fix cx ipeak client availability check"

parents 8c63eb9b c7731258
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1084,15 +1084,15 @@ int sde_cx_ipeak_vote(struct sde_power_handle *phandle, struct dss_clk *clock,
	int ret = 0;
	u64 curr_core_clk_rate, max_core_clk_rate, prev_core_clk_rate;

	if (phandle->dss_cx_ipeak) {
	if (!phandle->dss_cx_ipeak) {
		pr_debug("%pS->%s: Invalid input\n",
				__builtin_return_address(0), __func__);
		return -EINVAL;
		return -EOPNOTSUPP;
	}

	if (strcmp("core_clk", clock->clk_name)) {
		pr_debug("Not a core clk , cx_ipeak vote not needed\n");
		return -EINVAL;
		return -EOPNOTSUPP;
	}

	curr_core_clk_rate = clock->rate;