Skip to contentSkip to conversation

drm/panel: ltk050h3146w: convert mipi_dsi_attach error message to dev_err_probe

PATCH In review Heiko Stuebner 2 participants 3 messages Nov 2

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/panel: ltk050h3146w: convert mipi_dsi_attach error message to dev_err_probe

From: Heiko Stuebner <[email protected]>

The panel will happily report every defer during probe with an error message.

Silence that to actual errors.

---
changes in v2:
- adapt to drm_panel_remove removal

 drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/panel/panel-leadtek-ltk050h3146w.c +2 -4
index 8a02e92061f5..e95c99e28a09 100644
@@ -588,10 +588,8 @@ static int ltk050h3146w_probe(struct mipi_dsi_device *dsi)
 		return ret;
 
 	ret = devm_mipi_dsi_attach(dev, dsi);
-	if (ret < 0) {
-		dev_err(dev, "mipi_dsi_attach failed: %d\n", ret);
-		return ret;
-	}
+	if (ret < 0)
+		return dev_err_probe(dev, ret, "mipi_dsi_attach failed\n");
 
 	return 0;
 }
Signature · 1 line
2.47.3
#2 lore raw

Am Montag, 2. November 2026, 21:03:19 Mitteleuropäische Normalzeit schrieb Quentin Schulz:

Quoted 8 lines

Hi Heiko,

Quoted 5 lines · Heiko Stuebner

From: Heiko Stuebner <[email protected]>

The panel will happily report every defer during probe with an error message.

Quoted 6 lines
Quoted 2 lines

Silence that to actual errors.

You forgot to add Neil's Rb from the v1. Here's mine:

I wasn't sure if that carried ... because the structure changed, due to the drm_panel_remove call being gone beforehand.