mmc: sdhci-s3c: add platform data for the second capability
This patch is added host_caps2 in sdhci-s3c.c It's necessary that use the second capabilities. And removed the duplicated host_caps. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Chris Ball <cjb@laptop.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
This commit is contained in:
Родитель
25419010a8
Коммит
c1c4b66dc0
|
@ -518,9 +518,6 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
|
|||
if (pdata->cd_type == S3C_SDHCI_CD_PERMANENT)
|
||||
host->mmc->caps = MMC_CAP_NONREMOVABLE;
|
||||
|
||||
if (pdata->host_caps)
|
||||
host->mmc->caps |= pdata->host_caps;
|
||||
|
||||
if (pdata->pm_caps)
|
||||
host->mmc->pm_caps |= pdata->pm_caps;
|
||||
|
||||
|
@ -544,6 +541,9 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
|
|||
if (pdata->host_caps)
|
||||
host->mmc->caps |= pdata->host_caps;
|
||||
|
||||
if (pdata->host_caps2)
|
||||
host->mmc->caps2 |= pdata->host_caps2;
|
||||
|
||||
ret = sdhci_add_host(host);
|
||||
if (ret) {
|
||||
dev_err(dev, "sdhci_add_host() failed\n");
|
||||
|
|
Загрузка…
Ссылка в новой задаче