All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: renesas: rz-du: mipi-dsi: Drop duplicate platform_set_drvdata() call
@ 2026-11-10 11:46 Prabhakar
  2026-11-10 11:51 ` sashiko-bot
  2026-11-10 11:59 ` Biju Das
  0 siblings, 2 replies; 7+ messages in thread
From: Prabhakar @ 2026-11-10 11:46 UTC (permalink / raw)
  To: Biju Das, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
	David Airlie, Simona Vetter
  Cc: dri-devel, linux-renesas-soc, linux-kernel, Prabhakar,
	Fabrizio Castro, Prabhakar

From: John Madieu <john.madieu.xa@bp.renesas.com>

The platform driver data is already set earlier in
rzg2l_mipi_dsi_probe(). The subsequent platform_set_drvdata() call
uses the same arguments and is therefore redundant.

Remove the duplicate call.

Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
 drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 2 --
 1 file changed, 2 deletions(-)

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 5b257f5adf06..985d6e02203c 100644
--- a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
+++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
@@ -1576,8 +1576,6 @@ static int rzg2l_mipi_dsi_probe(struct platform_device *pdev)
 	if (!dsi->dcs_buf_virt)
 		return -ENOMEM;
 
-	platform_set_drvdata(pdev, dsi);
-
 	ret = rzg2l_mipi_dsi_pwrrdy_init(dsi);
 	if (ret)
 		return ret;
-- 
2.56.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] drm: renesas: rz-du: mipi-dsi: drop duplicate platform_set_drvdata() call
@ 2026-04-25  2:28 John Madieu
  2026-04-25  6:39 ` Biju Das
  0 siblings, 1 reply; 7+ messages in thread
From: John Madieu @ 2026-04-25  2:28 UTC (permalink / raw)
  To: biju.das.jz, maarten.lankhorst, mripard, tzimmermann, airlied,
	simona
  Cc: dri-devel, linux-renesas-soc, linux-kernel, john.madieu,
	John Madieu

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.

No functional change.

Signed-off-by: John Madieu <john.madieu.xa@bp.renesas.com>
---
 drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 2 --
 1 file changed, 2 deletions(-)

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 0b4861824319..b8527661a409 100644
--- a/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
+++ b/drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
@@ -1441,8 +1441,6 @@ static int rzg2l_mipi_dsi_probe(struct platform_device *pdev)
 		return dev_err_probe(dsi->dev, PTR_ERR(dsi->prstc),
 				     "failed to get prst\n");
 
-	platform_set_drvdata(pdev, dsi);
-
 	pm_runtime_enable(dsi->dev);
 
 	ret = pm_runtime_resume_and_get(dsi->dev);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-10 12:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10 11:46 [PATCH] drm: renesas: rz-du: mipi-dsi: Drop duplicate platform_set_drvdata() call Prabhakar
2026-11-10 11:51 ` sashiko-bot
2026-11-10 11:59 ` Biju Das
2026-11-10 12:21   ` Lad, Prabhakar
  -- strict thread matches above, loose matches on Subject: below --
2026-04-25  2:28 [PATCH] drm: renesas: rz-du: mipi-dsi: drop " John Madieu
2026-04-25  6:39 ` Biju Das
2026-04-25 10:47   ` John Madieu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.