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

Commit e1598474 authored by Konstantin Dorfman's avatar Konstantin Dorfman Committed by Matt Wagantall
Browse files

mmc: core: fix disable clock scaling



Disable clock scaling only when clock scaling was properly initialized.

Change-Id: I7ec45e49c5ce18ea6aef0e272e79325fa8952c5b
Signed-off-by: default avatarKonstantin Dorfman <kdorfman@codeaurora.org>
parent 35fa3747
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2762,9 +2762,11 @@ out:
 */
void mmc_disable_clk_scaling(struct mmc_host *host)
{
	if (host->clk_scaling.initialized) {
		cancel_delayed_work_sync(&host->clk_scaling.work);
		host->clk_scaling.enable = false;
	}
}
EXPORT_SYMBOL_GPL(mmc_disable_clk_scaling);

/**