mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
mmc: sdhci-pltfm: Remove sdhci_pltfm_unregister()
Now that sdhci_pltfm_unregister() is unused, remove it. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230811130351.7038-16-adrian.hunter@intel.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
b1284d7c62
commit
f0255cdca3
|
|
@ -187,18 +187,6 @@ int sdhci_pltfm_register(struct platform_device *pdev,
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(sdhci_pltfm_register);
|
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)
|
void sdhci_pltfm_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct sdhci_host *host = platform_get_drvdata(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,
|
extern int sdhci_pltfm_register(struct platform_device *pdev,
|
||||||
const struct sdhci_pltfm_data *pdata,
|
const struct sdhci_pltfm_data *pdata,
|
||||||
size_t priv_size);
|
size_t priv_size);
|
||||||
extern void sdhci_pltfm_unregister(struct platform_device *pdev);
|
|
||||||
extern void sdhci_pltfm_remove(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);
|
extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user