mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
mmc: rk_sdmmc: doesn't enforce hpclk to be used
Signed-off-by: lintao <lintao@rock-chips.com>
This commit is contained in:
parent
c49dc7088f
commit
ac12f21803
|
|
@ -3878,10 +3878,9 @@ int dw_mci_probe(struct dw_mci *host)
|
|||
host->hpclk_mmc= devm_clk_get(host->dev, "hpclk_mmc");
|
||||
if (IS_ERR(host->hpclk_mmc)) {
|
||||
dev_err(host->dev, "failed to get hpclk_mmc\n");
|
||||
ret = PTR_ERR(host->hpclk_mmc);
|
||||
goto err_hpclk_mmc;
|
||||
} else {
|
||||
clk_prepare_enable(host->hpclk_mmc);
|
||||
}
|
||||
clk_prepare_enable(host->hpclk_mmc);
|
||||
|
||||
//hclk enable
|
||||
host->hclk_mmc= devm_clk_get(host->dev, "hclk_mmc");
|
||||
|
|
@ -4083,9 +4082,6 @@ int dw_mci_probe(struct dw_mci *host)
|
|||
err_hclk_mmc:
|
||||
if (!IS_ERR(host->hclk_mmc))
|
||||
clk_disable_unprepare(host->hclk_mmc);
|
||||
err_hpclk_mmc:
|
||||
if (!IS_ERR(host->hpclk_mmc))
|
||||
clk_disable_unprepare(host->hpclk_mmc);
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL(dw_mci_probe);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user