Re: [PATCH v3] mmc: pxamci: Simplify pxamci_probe() error handling using devm APIs
From: Uwe Kleine-König
Date: Wed Oct 29 2025 - 06:06:47 EST
Hello,
On Thu, Oct 23, 2025 at 08:24:32PM +0530, Rakuram Eswaran wrote:
> This patch refactors pxamci_probe() to use devm-managed resource
> allocation (e.g. devm_dma_request_chan) and dev_err_probe() for
> improved readability and automatic cleanup on probe failure.
>
> It also removes redundant NULL assignments and manual resource release
> logic from pxamci_probe(), and eliminates the corresponding release
> calls from pxamci_remove().
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Closes: https://lore.kernel.org/r/202510041841.pRlunIfl-lkp@xxxxxxxxx/
> Fixes: 58c40f3faf742c ("mmc: pxamci: Use devm_mmc_alloc_host() helper")
> Suggested-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxx>
> Signed-off-by: Rakuram Eswaran <rakuram.e96@xxxxxxxxx>
LGTM, thanks
Acked-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxx>
Best regards
Uwe
Attachment:
signature.asc
Description: PGP signature