Re: [PATCH v4 6/8] clk: clocking-wizard: Use dev_err_probe() when mapping registers

From: Brian Masney

Date: Wed Nov 25 2026 - 10:39:27 EST


Hi Shubhrajyoti,

> Align the devm_platform_ioremap_resource() error path with clk_in1 and
> s_axi_aclk handling for consistent logging and deferred-probe behavior.
>
> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xxxxxxx>
> ---
> (no changes since v1)
>
> drivers/clk/xilinx/clk-xlnx-clock-wizard.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/clk/xilinx/clk-xlnx-clock-wizard.c b/drivers/clk/xilinx/clk-xlnx-clock-wizard.c
> index a3f4c5d6495e..7fe8d0d4cfba 100644
> --- a/drivers/clk/xilinx/clk-xlnx-clock-wizard.c
> +++ b/drivers/clk/xilinx/clk-xlnx-clock-wizard.c
> @@ -1414,7 +1414,8 @@ static int clk_wzrd_probe(struct platform_device *pdev)
>
> clk_wzrd->base = devm_platform_ioremap_resource(pdev, 0);
> if (IS_ERR(clk_wzrd->base))
> - return PTR_ERR(clk_wzrd->base);
> + return dev_err_probe(&pdev->dev, PTR_ERR(clk_wzrd->base),
> + "failed to map registers\n");

The Sashiko output looks legit here. Drop the message.

Brian

--
Brian Masney <masneyb@xxxxxxxxxx>