Commit 62e546be authored by Ulf Hansson's avatar Ulf Hansson

mmc: mmci: Share sdmmc_variant_init() via the common header file

It's good practice to share functions via header files, rather than from
the c-files. Therefore, let's move sdmmc_variant_init() to mmci.h.
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Acked-by: default avatarLudovic Barre <ludovic.barre@st.com>
Tested-by: default avatarLudovic Barre <ludovic.barre@st.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent f7f3e7da
......@@ -52,12 +52,6 @@ void mmci_variant_init(struct mmci_host *host);
static inline void mmci_variant_init(struct mmci_host *host) {}
#endif
#ifdef CONFIG_MMC_STM32_SDMMC
void sdmmc_variant_init(struct mmci_host *host);
#else
static inline void sdmmc_variant_init(struct mmci_host *host) {}
#endif
static unsigned int fmax = 515633;
static struct variant_data variant_arm = {
......
......@@ -447,3 +447,9 @@ void qcom_variant_init(struct mmci_host *host);
#else
static inline void qcom_variant_init(struct mmci_host *host) {}
#endif
#ifdef CONFIG_MMC_STM32_SDMMC
void sdmmc_variant_init(struct mmci_host *host);
#else
static inline void sdmmc_variant_init(struct mmci_host *host) {}
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment