mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
mmc: sdhci-esdhc-imx: clear f_max in boarddata
After commit 8d86e4fccc ("mmc: sdhci-esdhc-imx: Call mmc_of_parse()"),
it's not used anymore.
Signed-off-by: Dong Aisheng <[email protected]>
Reviewed-by: Johan Derycke <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
2e05d66b6b
commit
a3bd4f989f
2 changed files with 1 additions and 7 deletions
|
|
@ -581,13 +581,8 @@ static void esdhc_writeb_le(struct sdhci_host *host, u8 val, int reg)
|
|||
static unsigned int esdhc_pltfm_get_max_clock(struct sdhci_host *host)
|
||||
{
|
||||
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
|
||||
struct pltfm_imx_data *imx_data = pltfm_host->priv;
|
||||
struct esdhc_platform_data *boarddata = &imx_data->boarddata;
|
||||
|
||||
if (boarddata->f_max && (boarddata->f_max < pltfm_host->clock))
|
||||
return boarddata->f_max;
|
||||
else
|
||||
return pltfm_host->clock;
|
||||
return pltfm_host->clock;
|
||||
}
|
||||
|
||||
static unsigned int esdhc_pltfm_get_min_clock(struct sdhci_host *host)
|
||||
|
|
|
|||
Loading…
Reference in a new issue