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 cd0f1f68e261a8e244767f5e0dd9dc8ad39279b8..77821869e66e5e7e1887fdb52042b6620b4bfe02 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 1210ed1b0c605370e8f9d71fda633427ee1e4fed..83d42c60a06f62b258e5511caa668377b3adad1e 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 {