[PATCH v2] drm: renesas: rz-du: mipi-dsi: drop duplicate platform_set_drvdata() call

From: John Madieu

Date: Fri May 01 2026 - 04:09:34 EST


rzg2l_mipi_dsi_probe() calls platform_set_drvdata() twice with the same
arguments: once right after devm_drm_bridge_alloc() succeeds and again
after the reset controllers have been acquired. The second call is
redundant; remove it.

Signed-off-by: John Madieu <john.madieu.xa@xxxxxxxxxxxxxx>
---

Change:

v2: rather drop first occurence, leaving the appropriate call
close to where the platform data would really be used

drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
index 715872130780..32616e5bc591 100644
--- a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
+++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
@@ -1406,7 +1406,6 @@ static int rzg2l_mipi_dsi_probe(struct platform_device *pdev)
if (IS_ERR(dsi))
return PTR_ERR(dsi);

- platform_set_drvdata(pdev, dsi);
dsi->dev = &pdev->dev;

dsi->info = of_device_get_match_data(&pdev->dev);
--
2.25.1