aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/mmc/host/sdhci-pltfm.c
diff options
context:
space:
mode:
authorAl Cooper <alcooperx@gmail.com>2013-05-26 13:59:26 -0400
committerChris Ball <cjb@laptop.org>2013-05-26 14:23:22 -0400
commitad82ab65d8abd060b60d99b8559da99c31515a31 (patch)
treeaa46094d0345e8f85c18051121186f19949a964d /drivers/mmc/host/sdhci-pltfm.c
parentmmc: atmel-mci: add CONFIG_PM_SLEEP to suspend/resume functions (diff)
downloadwireguard-linux-ad82ab65d8abd060b60d99b8559da99c31515a31.tar.xz
wireguard-linux-ad82ab65d8abd060b60d99b8559da99c31515a31.zip
mmc: sdhci-pltfm: Allow drivers to set quirks2 from platform data
Signed-off-by: Al Cooper <alcooperx@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pltfm.c')
-rw-r--r--drivers/mmc/host/sdhci-pltfm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index cd0f1f68e261..77821869e66e 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -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),