]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
irqchip/renesas-rzv2h: Use local node pointer
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Wed, 4 Mar 2026 11:33:11 +0000 (11:33 +0000)
committerThomas Gleixner <tglx@kernel.org>
Tue, 10 Mar 2026 17:34:51 +0000 (18:34 +0100)
Avoid dereferencing pdev->dev.of_node again in rzv2h_icu_probe_common().
Reuse the already available local node pointer when mapping the ICU
register space.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260304113317.129339-2-prabhakar.mahadev-lad.rj@bp.renesas.com
drivers/irqchip/irq-renesas-rzv2h.c

index da2bc43a0e122bcd1c53ed00a557e8788c178ddc..20c0cd11ef25b18ecd9396df1ae16717dff9c448 100644 (file)
@@ -570,7 +570,7 @@ static int rzv2h_icu_probe_common(struct platform_device *pdev, struct device_no
 
        platform_set_drvdata(pdev, rzv2h_icu_data);
 
-       rzv2h_icu_data->base = devm_of_iomap(&pdev->dev, pdev->dev.of_node, 0, NULL);
+       rzv2h_icu_data->base = devm_of_iomap(&pdev->dev, node, 0, NULL);
        if (IS_ERR(rzv2h_icu_data->base))
                return PTR_ERR(rzv2h_icu_data->base);