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

Commit 7403688d authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

Revert "mmc: core: fix the clock scaling handling"



This reverts commit c77e1c54.
Now that we are getting the actual frequency value in devfreq target
function, we don't need to look for frequency being set to UINT_MAX.

Change-Id: I2194456d1b29a685fbade2159599303353fad00d
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent 3faf7157
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -495,11 +495,6 @@ static int mmc_devfreq_set_target(struct device *dev,
	if (!clk_scaling->enable)
		goto out;

	if (*freq == UINT_MAX)
		*freq = clk_scaling->freq_table[1];
	else
		*freq = clk_scaling->freq_table[0];

	pr_debug("%s: target freq = %lu (%s)\n", mmc_hostname(host),
		*freq, current->comm);