mirror of https://gitee.com/openkylin/linux.git
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: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Ludovic Barre <ludovic.barre@st.com> Tested-by: Ludovic Barre <ludovic.barre@st.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
f7f3e7dac8
commit
62e546be6d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue