Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci-of-aspeed: Drop the use of sdhci_pltfm_free()

Since the devm_mmc_alloc_host() helper is already in use,
sdhci_pltfm_free() is no longer needed.

Cc: Andrew Jeffery <andrew@codeconstruct.com.au>
Cc: Joel Stanley <joel@jms.id.au>
Cc: linux-aspeed@lists.ozlabs.org
Cc: openbmc@lists.ozlabs.org
Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Link: https://lore.kernel.org/r/117c13ffd2d67a4c7cad980634591c4851f560b5.1749127796.git.zhoubinbin@loongson.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Binbin Zhou and committed by
Ulf Hansson
aa8eeffc 62a8554f

+2 -8
+2 -8
drivers/mmc/host/sdhci-of-aspeed.c
··· 425 425 return PTR_ERR(pltfm_host->clk); 426 426 427 427 ret = clk_prepare_enable(pltfm_host->clk); 428 - if (ret) { 429 - dev_err(&pdev->dev, "Unable to enable SDIO clock\n"); 430 - goto err_pltfm_free; 431 - } 428 + if (ret) 429 + return dev_err_probe(&pdev->dev, ret, "Unable to enable SDIO clock\n"); 432 430 433 431 ret = mmc_of_parse(host->mmc); 434 432 if (ret) ··· 443 445 444 446 err_sdhci_add: 445 447 clk_disable_unprepare(pltfm_host->clk); 446 - err_pltfm_free: 447 - sdhci_pltfm_free(pdev); 448 448 return ret; 449 449 } 450 450 ··· 457 461 sdhci_remove_host(host, 0); 458 462 459 463 clk_disable_unprepare(pltfm_host->clk); 460 - 461 - sdhci_pltfm_free(pdev); 462 464 } 463 465 464 466 static const struct aspeed_sdhci_pdata ast2400_sdhci_pdata = {