[PATCH v2 22/35] mmc: sdhci-of-k1: Drop the use of sdhci_pltfm_free()

Yixun Lan dlan at gentoo.org
Thu May 29 08:23:38 PDT 2025


On 21:00 Thu 29 May     , Binbin Zhou wrote:
> Since the devm_mmc_alloc_host() helper is already in use,
> sdhci_pltfm_free() is no longer needed.
> 
> Cc: Yixun Lan <dlan at gentoo.org>
> Cc: linux-riscv at lists.infradead.org
> Cc: spacemit at lists.linux.dev
> Signed-off-by: Binbin Zhou <zhoubinbin at loongson.cn>

Reviewed-by: Yixun Lan <dlan at gentoo.org>

> ---
>  drivers/mmc/host/sdhci-of-k1.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/mmc/host/sdhci-of-k1.c b/drivers/mmc/host/sdhci-of-k1.c
> index 6880d3e9ab62..026dc79af292 100644
> --- a/drivers/mmc/host/sdhci-of-k1.c
> +++ b/drivers/mmc/host/sdhci-of-k1.c
> @@ -286,7 +286,6 @@ static int spacemit_sdhci_probe(struct platform_device *pdev)
>  	return 0;
>  
>  err_pltfm:
> -	sdhci_pltfm_free(pdev);
>  	return ret;
>  }
>  
> -- 
> 2.47.1
> 

-- 
Yixun Lan (dlan)



More information about the linux-riscv mailing list