mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 18:53:52 +08:00
mmc: sdhci-spear: Don't call clk_{un}prepare() in suspend/resume
clk_{un}prepare is mandatory for platforms using common clock framework. Because for SPEAr we don't do anything in clk_{un}prepare() calls, just call them once in probe/remove. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
257f9df123
commit
06960a1b5d
@ -302,7 +302,7 @@ static int sdhci_suspend(struct device *dev)
|
|||||||
|
|
||||||
ret = sdhci_suspend_host(host);
|
ret = sdhci_suspend_host(host);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
clk_disable_unprepare(sdhci->clk);
|
clk_disable(sdhci->clk);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -313,7 +313,7 @@ static int sdhci_resume(struct device *dev)
|
|||||||
struct spear_sdhci *sdhci = dev_get_platdata(dev);
|
struct spear_sdhci *sdhci = dev_get_platdata(dev);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = clk_prepare_enable(sdhci->clk);
|
ret = clk_enable(sdhci->clk);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_dbg(dev, "Resume: Error enabling clock\n");
|
dev_dbg(dev, "Resume: Error enabling clock\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user