summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pci-core.c
diff options
context:
space:
mode:
authorAdrian Hunter2016-10-05 11:11:23 +0200
committerUlf Hansson2016-10-10 14:20:48 +0200
commit6bc090631dfc3394da0619e920662e6636dbe89c (patch)
treebc598a71d1963b9eb46e8dcd864e747c48d4374c /drivers/mmc/host/sdhci-pci-core.c
parentmmc: sdhci: Rename sdhci_set_power() to sdhci_set_power_noreg() (diff)
downloadkernel-qcow2-linux-6bc090631dfc3394da0619e920662e6636dbe89c.tar.gz
kernel-qcow2-linux-6bc090631dfc3394da0619e920662e6636dbe89c.tar.xz
kernel-qcow2-linux-6bc090631dfc3394da0619e920662e6636dbe89c.zip
mmc: sdhci-pci: Let devices define their own sdhci_ops
Let devices define their own sdhci_ops so that device-specific variations can be implemented without adding quirks. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci-core.c')
-rw-r--r--drivers/mmc/host/sdhci-pci-core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c
index 72a1f1f5180a..5e11e0e3be63 100644
--- a/drivers/mmc/host/sdhci-pci-core.c
+++ b/drivers/mmc/host/sdhci-pci-core.c
@@ -1648,7 +1648,9 @@ static struct sdhci_pci_slot *sdhci_pci_probe_slot(
}
host->hw_name = "PCI";
- host->ops = &sdhci_pci_ops;
+ host->ops = chip->fixes && chip->fixes->ops ?
+ chip->fixes->ops :
+ &sdhci_pci_ops;
host->quirks = chip->quirks;
host->quirks2 = chip->quirks2;