mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
irqchip/renesas-rzv2h: Use local node pointer
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
This commit is contained in:
parent
4b52df1b4e
commit
9fcd9ffe94
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user