]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: sdhci-s3c: Add pm_caps into SD/MMC host
authorSangwook Lee <sangwook.lee@linaro.org>
Mon, 7 Nov 2011 17:05:22 +0000 (17:05 +0000)
committerChris Ball <cjb@laptop.org>
Thu, 12 Jan 2012 04:58:43 +0000 (23:58 -0500)
sdhci-s3c updates pm_caps from platform data for SDIO PM.

Signed-off-by: Sangwook Lee <sangwook.lee@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-s3c.c

index 55c1e870da83ad2fd6bb2461942d4ff98f616747..b6558b829a9cb6c3794be9451e12dbd912f8de10 100644 (file)
@@ -524,6 +524,9 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
        if (pdata->host_caps)
                host->mmc->caps |= pdata->host_caps;
 
+       if (pdata->pm_caps)
+               host->mmc->pm_caps |= pdata->pm_caps;
+
        host->quirks |= (SDHCI_QUIRK_32BIT_DMA_ADDR |
                         SDHCI_QUIRK_32BIT_DMA_SIZE);