mmc: sdhci-pltfm: Allow drivers to set quirks2 from platform data
authorAl Cooper <alcooperx@gmail.com>
Sun, 26 May 2013 17:59:26 +0000 (13:59 -0400)
committerChris Ball <cjb@laptop.org>
Sun, 26 May 2013 18:23:22 +0000 (14:23 -0400)
Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-pltfm.c
drivers/mmc/host/sdhci-pltfm.h

index cd0f1f6..7782186 100644 (file)
@@ -150,8 +150,11 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
                host->ops = pdata->ops;
        else
                host->ops = &sdhci_pltfm_ops;
-       if (pdata)
+       if (pdata) {
                host->quirks = pdata->quirks;
+               host->quirks2 = pdata->quirks2;
+       }
+
        host->irq = platform_get_irq(pdev, 0);
 
        if (!request_mem_region(iomem->start, resource_size(iomem),
index 1210ed1..83d42c6 100644 (file)
@@ -18,6 +18,7 @@
 struct sdhci_pltfm_data {
        const struct sdhci_ops *ops;
        unsigned int quirks;
+       unsigned int quirks2;
 };
 
 struct sdhci_pltfm_host {