diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2017-03-20 19:50:48 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-04-24 21:41:36 +0200 |
commit | 61c951dedce6aa4dbc5456730233c30ac0d30d5d (patch) | |
tree | 6a99060c47afda7ca37d9d3754b789e79aaabc63 /drivers/mmc/host/sdhci-pci-core.c | |
parent | f12e39dbf3e6eb521435085712addc131d803bfd (diff) | |
download | blackbird-op-linux-61c951dedce6aa4dbc5456730233c30ac0d30d5d.tar.gz blackbird-op-linux-61c951dedce6aa4dbc5456730233c30ac0d30d5d.zip |
mmc: sdhci-pci: Let devices define how to add the host
SDHCI provides more flexibility than simply calling sdhci_add_host(). Make
that available by allowing devices to specify their own ->add_host()
function.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci-core.c')
-rw-r--r-- | drivers/mmc/host/sdhci-pci-core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 98ed90cbd9b4..b5fd82e26125 100644 --- a/drivers/mmc/host/sdhci-pci-core.c +++ b/drivers/mmc/host/sdhci-pci-core.c @@ -1949,7 +1949,10 @@ static struct sdhci_pci_slot *sdhci_pci_probe_slot( } } - ret = sdhci_add_host(host); + if (chip->fixes && chip->fixes->add_host) + ret = chip->fixes->add_host(slot); + else + ret = sdhci_add_host(host); if (ret) goto remove; |