Skip to contentSkip to conversation

drm: renesas: rzg2l_mipi_dsi: Remove redundant driver data assignment

PATCH New Prabhakar 1 participant 1 message Nov 11

Subsystems (3)
lore
Share & tools
lore

Prabhakar

author
#0 lore raw

PATCH v4 1/1 drm: renesas: rzg2l_mipi_dsi: Remove redundant driver data assignment

From: John Madieu <[email protected]>

rzg2l_mipi_dsi_probe() calls platform_set_drvdata() twice with the same
arguments: once immediately after devm_drm_bridge_alloc() succeeds and again after the DCS buffer has been allocated.

Drop the first call and keep the second one, as it is closer to where the platform data is actually used.

---
v3->v4:
- Updated commit message
- Dropped the first driver data assignment in rzg2l_mipi_dsi_probe()
v3: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/
---

 drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c +0 -1
index 5b257f5adf06..65f26f889a67 100644
@@ -1532,7 +1532,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);
Signature · 1 line
2.56.1