aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2012-02-07 01:59:01 -0500
committerKukjin Kim <kgene.kim@samsung.com>2012-03-11 03:40:32 -0400
commitc1c4b66dc010bb69456f7f7c25442772bbe54dbd (patch)
tree61710c1f5c6fa59706c73c456e87522b8462bdf4 /drivers/mmc
parent25419010a83e314d10b008aed86a198e07fa9487 (diff)
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci-s3c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
index 1af756ee0f9a..b19e7d435f8d 100644
--- a/drivers/mmc/host/sdhci-s3c.c
+++ b/drivers/mmc/host/sdhci-s3c.c
@@ -518,9 +518,6 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
518 if (pdata->cd_type == S3C_SDHCI_CD_PERMANENT) 518 if (pdata->cd_type == S3C_SDHCI_CD_PERMANENT)
519 host->mmc->caps = MMC_CAP_NONREMOVABLE; 519 host->mmc->caps = MMC_CAP_NONREMOVABLE;
520 520
521 if (pdata->host_caps)
522 host->mmc->caps |= pdata->host_caps;
523
524 if (pdata->pm_caps) 521 if (pdata->pm_caps)
525 host->mmc->pm_caps |= pdata->pm_caps; 522 host->mmc->pm_caps |= pdata->pm_caps;
526 523
@@ -544,6 +541,9 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
544 if (pdata->host_caps) 541 if (pdata->host_caps)
545 host->mmc->caps |= pdata->host_caps; 542 host->mmc->caps |= pdata->host_caps;
546 543
544 if (pdata->host_caps2)
545 host->mmc->caps2 |= pdata->host_caps2;
546
547 ret = sdhci_add_host(host); 547 ret = sdhci_add_host(host);
548 if (ret) { 548 if (ret) {
549 dev_err(dev, "sdhci_add_host() failed\n"); 549 dev_err(dev, "sdhci_add_host() failed\n");