@@ -618,7 +618,7 @@ static int sdhci_set_ios(struct mmc *mmc)
return 0;
}
-static int sdhci_init(struct mmc *mmc)
+int sdhci_init(struct mmc *mmc)
{
struct sdhci_host *host = mmc->priv;
#if CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(DM_GPIO)
@@ -487,6 +487,7 @@ void sdhci_set_uhs_timing(struct sdhci_host *host);
#ifdef CONFIG_DM_MMC
/* Export the operations to drivers */
int sdhci_probe(struct udevice *dev);
+int sdhci_init(struct mmc *mmc);
int sdhci_set_clock(struct mmc *mmc, unsigned int clock);
extern const struct dm_mmc_ops sdhci_ops;
#else
Expose sdhci_init() as non-static. Signed-off-by: Faiz Abbas <faiz_abbas at ti.com> --- drivers/mmc/sdhci.c | 2 +- include/sdhci.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)