Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ad82ab65 authored by Al Cooper's avatar Al Cooper Committed by Chris Ball
Browse files

mmc: sdhci-pltfm: Allow drivers to set quirks2 from platform data



Signed-off-by: default avatarAl Cooper <alcooperx@gmail.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 5a942b6f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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),
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
struct sdhci_pltfm_data {
	const struct sdhci_ops *ops;
	unsigned int quirks;
	unsigned int quirks2;
};

struct sdhci_pltfm_host {