From: Aubin Constans <aubin.constans@microchip.com>
To: Binbin Zhou <zhoubinbin@loongson.cn>,
Binbin Zhou <zhoubb.aaron@gmail.com>,
Huacai Chen <chenhuacai@loongson.cn>,
Ulf Hansson <ulf.hansson@linaro.org>,
Adrian Hunter <adrian.hunter@intel.com>
Cc: Huacai Chen <chenhuacai@kernel.org>, <linux-mmc@vger.kernel.org>,
"Andrew Jeffery" <andrew@codeconstruct.com.au>,
Eugen Hristev <eugen.hristev@linaro.org>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>
Subject: Re: [PATCH v3 19/35] mmc: sdhci-of-at91: Drop the use of sdhci_pltfm_free()
Date: Tue, 10 Jun 2025 11:34:34 +0200 [thread overview]
Message-ID: <94b36ca8-84e5-49ee-9a4c-169681bb282d@microchip.com> (raw)
In-Reply-To: <d64ed0f849277760d5b9ce04cfff1cd02ad43d19.1749127796.git.zhoubinbin@loongson.cn>
On 07/06/2025 09:38, Binbin Zhou wrote:
> Since the devm_mmc_alloc_host() helper is already in use,
> sdhci_pltfm_free() is no longer needed.
>
> Cc: Aubin Constans <aubin.constans@microchip.com>
> Cc: Eugen Hristev <eugen.hristev@linaro.org>
> Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
> Cc: Claudiu Beznea <claudiu.beznea@tuxon.dev>
> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
Acked-by: Aubin Constans <aubin.constans@microchip.com>
> ---
> drivers/mmc/host/sdhci-of-at91.c | 30 +++++++++++-------------------
> 1 file changed, 11 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-of-at91.c b/drivers/mmc/host/sdhci-of-at91.c
> index 97988ed37467..be80a457cd49 100644
> --- a/drivers/mmc/host/sdhci-of-at91.c
> +++ b/drivers/mmc/host/sdhci-of-at91.c
> @@ -333,32 +333,26 @@ static int sdhci_at91_probe(struct platform_device *pdev)
>
> priv->mainck = devm_clk_get(&pdev->dev, "baseclk");
> if (IS_ERR(priv->mainck)) {
> - if (soc_data->baseclk_is_generated_internally) {
> + if (soc_data->baseclk_is_generated_internally)
> priv->mainck = NULL;
> - } else {
> - dev_err(&pdev->dev, "failed to get baseclk\n");
> - ret = PTR_ERR(priv->mainck);
> - goto sdhci_pltfm_free;
> - }
> + else
> + return dev_err_probe(&pdev->dev, PTR_ERR(priv->mainck),
> + "failed to get baseclk\n");
> }
>
> priv->hclock = devm_clk_get(&pdev->dev, "hclock");
> - if (IS_ERR(priv->hclock)) {
> - dev_err(&pdev->dev, "failed to get hclock\n");
> - ret = PTR_ERR(priv->hclock);
> - goto sdhci_pltfm_free;
> - }
> + if (IS_ERR(priv->hclock))
> + return dev_err_probe(&pdev->dev, PTR_ERR(priv->hclock),
> + "failed to get hclock\n");
>
> priv->gck = devm_clk_get(&pdev->dev, "multclk");
> - if (IS_ERR(priv->gck)) {
> - dev_err(&pdev->dev, "failed to get multclk\n");
> - ret = PTR_ERR(priv->gck);
> - goto sdhci_pltfm_free;
> - }
> + if (IS_ERR(priv->gck))
> + return dev_err_probe(&pdev->dev, PTR_ERR(priv->gck),
> + "failed to get multclk\n");
>
> ret = sdhci_at91_set_clks_presets(&pdev->dev);
> if (ret)
> - goto sdhci_pltfm_free;
> + return ret;
>
> priv->restore_needed = false;
>
> @@ -438,8 +432,6 @@ static int sdhci_at91_probe(struct platform_device *pdev)
> clk_disable_unprepare(priv->gck);
> clk_disable_unprepare(priv->mainck);
> clk_disable_unprepare(priv->hclock);
> -sdhci_pltfm_free:
> - sdhci_pltfm_free(pdev);
> return ret;
> }
>
> --
> 2.47.1
>
next prev parent reply other threads:[~2025-06-10 9:34 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-07 7:31 [PATCH v3 00/35] mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage Binbin Zhou
2025-06-07 7:33 ` [PATCH v3 01/35] mmc: sdhci: Use devm_mmc_alloc_host() helper Binbin Zhou
2025-06-10 9:42 ` Thierry Reding
2025-06-10 10:21 ` Binbin Zhou
2025-06-10 11:15 ` Thierry Reding
2025-06-07 7:35 ` [PATCH v3 02/35] mmc: sdhci-acpi: Drop the use of sdhci_free_host() Binbin Zhou
2025-06-07 7:35 ` [PATCH v3 03/35] mmc: sdhci-milbeaut: " Binbin Zhou
2025-06-07 7:35 ` [PATCH v3 04/35] mmc: sdhci-pci: " Binbin Zhou
2025-06-07 7:35 ` [PATCH v3 05/35] mmc: sdhci-s3c: " Binbin Zhou
2025-06-07 7:35 ` [PATCH v3 06/35] mmc: sdhci-spear: " Binbin Zhou
2025-06-07 7:35 ` [PATCH v3 07/35] mmc: sdhci-pltfm: Drop the use of sdhci_pltfm_free() Binbin Zhou
2025-06-07 7:35 ` [PATCH v3 08/35] mmc: sdhci-bcm-kona: " Binbin Zhou
2025-06-07 7:35 ` [PATCH v3 09/35] mmc: sdhci-brcmstb: " Binbin Zhou
2025-06-07 7:36 ` [PATCH v3 10/35] mmc: sdhci-cadence: " Binbin Zhou
2025-06-07 7:36 ` [PATCH v3 11/35] mmc: sdhci-dove: " Binbin Zhou
2025-06-07 7:36 ` [PATCH v3 12/35] mmc: sdhci-esdhc-imx: " Binbin Zhou
2025-06-09 1:58 ` Bough Chen
2025-06-07 7:36 ` [PATCH v3 13/35] mmc: sdhci-esdhc-mcf: " Binbin Zhou
2025-06-07 7:37 ` [PATCH v3 14/35] mmc: sdhci-iproc: " Binbin Zhou
2025-06-07 7:37 ` [PATCH v3 15/35] mmc: sdhci-msm: " Binbin Zhou
2025-06-07 7:37 ` [PATCH v3 16/35] mmc: sdhci-npcm: " Binbin Zhou
2025-06-07 7:37 ` [PATCH v3 17/35] mmc: sdhci-of-arasan: " Binbin Zhou
2025-06-07 7:38 ` [PATCH v3 18/35] mmc: sdhci-of-aspeed: " Binbin Zhou
2025-06-07 7:38 ` [PATCH v3 19/35] mmc: sdhci-of-at91: " Binbin Zhou
2025-06-10 9:34 ` Aubin Constans [this message]
2025-06-07 7:39 ` [PATCH v3 20/35] mmc: sdhci-of-dwcmshc: " Binbin Zhou
2025-06-07 7:39 ` [PATCH v3 21/35] mmc: sdhci-of-esdhc: " Binbin Zhou
2025-06-07 7:39 ` [PATCH v3 22/35] mmc: sdhci-of-k1: " Binbin Zhou
2025-06-07 7:48 ` [PATCH v3 23/35] mmc: sdhci-of-ma35d1: " Binbin Zhou
2025-06-07 7:49 ` [PATCH v3 24/35] mmc: sdhci-of-sparx5: " Binbin Zhou
2025-06-12 12:45 ` Daniel Machon
2025-06-07 7:49 ` [PATCH v3 25/35] mmc: sdhci-omap: " Binbin Zhou
2025-06-07 7:50 ` [PATCH v3 26/35] mmc: sdhci-pic32: " Binbin Zhou
2025-06-07 7:50 ` [PATCH v3 27/35] mmc: sdhci-pxav2: " Binbin Zhou
2025-06-07 7:51 ` [PATCH v3 28/35] mmc: sdhci-pxav3: " Binbin Zhou
2025-06-07 7:51 ` [PATCH v3 29/35] mmc: sdhci-sprd: " Binbin Zhou
2025-06-07 7:51 ` [PATCH v3 30/35] mmc: sdhci-st: " Binbin Zhou
2025-06-07 7:52 ` [PATCH v3 31/35] mmc: sdhci-tegra: " Binbin Zhou
2025-06-10 11:16 ` Thierry Reding
2025-06-07 7:52 ` [PATCH v3 32/35] mmc: sdhci-xenon: " Binbin Zhou
2025-06-07 7:52 ` [PATCH v3 33/35] mmc: sdhci_am654: " Binbin Zhou
2025-06-07 7:53 ` [PATCH v3 34/35] mmc: sdhci_f_sdh30: " Binbin Zhou
2025-06-07 7:53 ` [PATCH v3 35/35] mmc: sdhci: Drop sdhci_free_host()/sdhci_pltfm_free() interface Binbin Zhou
2025-06-19 11:19 ` [PATCH v3 00/35] mmc: Cleanup sdhci_pltfm_free()/sdhci_free_host() usage Ulf Hansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=94b36ca8-84e5-49ee-9a4c-169681bb282d@microchip.com \
--to=aubin.constans@microchip.com \
--cc=adrian.hunter@intel.com \
--cc=alexandre.belloni@bootlin.com \
--cc=andrew@codeconstruct.com.au \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=claudiu.beznea@tuxon.dev \
--cc=eugen.hristev@linaro.org \
--cc=linux-mmc@vger.kernel.org \
--cc=nicolas.ferre@microchip.com \
--cc=ulf.hansson@linaro.org \
--cc=zhoubb.aaron@gmail.com \
--cc=zhoubinbin@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).