mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 01:13:11 +00:00
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]>
This commit is contained in:
committed by
Ulf Hansson
parent
b1284d7c62
commit
f0255cdca3
@@ -187,18 +187,6 @@ int sdhci_pltfm_register(struct platform_device *pdev,
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sdhci_pltfm_register);
|
||||
|
||||
void sdhci_pltfm_unregister(struct platform_device *pdev)
|
||||
{
|
||||
struct sdhci_host *host = platform_get_drvdata(pdev);
|
||||
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
|
||||
int dead = (readl(host->ioaddr + SDHCI_INT_STATUS) == 0xffffffff);
|
||||
|
||||
sdhci_remove_host(host, dead);
|
||||
clk_disable_unprepare(pltfm_host->clk);
|
||||
sdhci_pltfm_free(pdev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sdhci_pltfm_unregister);
|
||||
|
||||
void sdhci_pltfm_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct sdhci_host *host = platform_get_drvdata(pdev);
|
||||
|
||||
@@ -102,7 +102,6 @@ extern void sdhci_pltfm_free(struct platform_device *pdev);
|
||||
extern int sdhci_pltfm_register(struct platform_device *pdev,
|
||||
const struct sdhci_pltfm_data *pdata,
|
||||
size_t priv_size);
|
||||
extern void sdhci_pltfm_unregister(struct platform_device *pdev);
|
||||
extern void sdhci_pltfm_remove(struct platform_device *pdev);
|
||||
|
||||
extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host);
|
||||
|
||||
Reference in New Issue
Block a user