Skip to content

Commit f0255cd

Browse files
ahunter6storulf
authored andcommitted
mmc: sdhci-pltfm: Remove sdhci_pltfm_unregister()
Now that sdhci_pltfm_unregister() is unused, remove it. Signed-off-by: Adrian Hunter <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent b1284d7 commit f0255cd

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

drivers/mmc/host/sdhci-pltfm.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,6 @@ int sdhci_pltfm_register(struct platform_device *pdev,
187187
}
188188
EXPORT_SYMBOL_GPL(sdhci_pltfm_register);
189189

190-
void sdhci_pltfm_unregister(struct platform_device *pdev)
191-
{
192-
struct sdhci_host *host = platform_get_drvdata(pdev);
193-
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
194-
int dead = (readl(host->ioaddr + SDHCI_INT_STATUS) == 0xffffffff);
195-
196-
sdhci_remove_host(host, dead);
197-
clk_disable_unprepare(pltfm_host->clk);
198-
sdhci_pltfm_free(pdev);
199-
}
200-
EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister);
201-
202190
void sdhci_pltfm_remove(struct platform_device *pdev)
203191
{
204192
struct sdhci_host *host = platform_get_drvdata(pdev);

drivers/mmc/host/sdhci-pltfm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ extern void sdhci_pltfm_free(struct platform_device *pdev);
102102
extern int sdhci_pltfm_register(struct platform_device *pdev,
103103
const struct sdhci_pltfm_data *pdata,
104104
size_t priv_size);
105-
extern void sdhci_pltfm_unregister(struct platform_device *pdev);
106105
extern void sdhci_pltfm_remove(struct platform_device *pdev);
107106

108107
extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host);

0 commit comments

Comments
 (0)