Message ID | 1445d38edc9d40758221bc5c6db349e916ef3247.1748515612.git.zhoubinbin@loongson.cn |
---|---|
State | Superseded |
Headers | show |
Series | mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage | expand |
diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c index e6c5c82f64fa..1e38a881a859 100644 --- a/drivers/mmc/host/sdhci-acpi.c +++ b/drivers/mmc/host/sdhci-acpi.c @@ -948,7 +948,6 @@ static int sdhci_acpi_probe(struct platform_device *pdev) if (c->slot && c->slot->free_slot) c->slot->free_slot(pdev); - sdhci_free_host(c->host); return err; } @@ -972,8 +971,6 @@ static void sdhci_acpi_remove(struct platform_device *pdev) if (c->slot && c->slot->free_slot) c->slot->free_slot(pdev); - - sdhci_free_host(c->host); } static void __maybe_unused sdhci_acpi_reset_signal_voltage_if_needed(
Since the devm_mmc_alloc_host() helper is already in use, sdhci_free_host() is no longer needed. Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> --- drivers/mmc/host/sdhci-acpi.c | 3 --- 1 file changed, 3 deletions(-)