]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-pci: Let devices define how to add the host
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 20 Mar 2017 17:50:48 +0000 (19:50 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 24 Apr 2017 19:41:36 +0000 (21:41 +0200)
commit24eb3c02314a377956cc177fcc0ef18fdefbe30e
tree6a99060c47afda7ca37d9d3754b789e79aaabc63
parent08e814a478be80a90ca6bef91c2937cefde31f40
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>
drivers/mmc/host/sdhci-pci-core.c
drivers/mmc/host/sdhci-pci.h