From: Adrian Hunter Date: Mon, 20 Mar 2017 17:50:43 +0000 (+0200) Subject: mmc: sdhci: Export sdhci_dumpregs X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d28981727dccd0e1e867deceaa709bc89f1a5ebc;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mmc: sdhci: Export sdhci_dumpregs Export sdhci_dumpregs so that it can be called by drivers. Signed-off-by: Adrian Hunter Signed-off-by: Ulf Hansson Tested-by: Ludovic Desroches --- diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 2032bea9bd0d..7cb25dc1984f 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -52,7 +52,7 @@ static void sdhci_finish_data(struct sdhci_host *); static void sdhci_enable_preset_value(struct sdhci_host *host, bool enable); -static void sdhci_dumpregs(struct sdhci_host *host) +void sdhci_dumpregs(struct sdhci_host *host) { SDHCI_DUMP("============ SDHCI REGISTER DUMP ===========\n"); @@ -113,6 +113,7 @@ static void sdhci_dumpregs(struct sdhci_host *host) SDHCI_DUMP("============================================\n"); } +EXPORT_SYMBOL_GPL(sdhci_dumpregs); /*****************************************************************************\ * * diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 67772674da90..51c440eebe5c 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -698,4 +698,6 @@ extern int sdhci_runtime_suspend_host(struct sdhci_host *host); extern int sdhci_runtime_resume_host(struct sdhci_host *host); #endif +void sdhci_dumpregs(struct sdhci_host *host); + #endif /* __SDHCI_HW_H */