Skip to contentSkip to conversation

drm/bridge: synopsys: Return correct variable in dw_dp_bind()

PATCH New Dan Carpenter 1 participant 1 message Sep 2, 2025

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

PATCH 1/1 drm/bridge: synopsys: Return correct variable in dw_dp_bind()

There is a copy and paste bug here so we accidentally return "ret" which is zero instead of "dp->irq" which is an error code. Return the correct variable.

Fixes 86eecc3a9c2e ("drm/bridge: synopsys: Add DW DPTX Controller support library")
---
 drivers/gpu/drm/bridge/synopsys/dw-dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/bridge/synopsys/dw-dp.c +1 -1
index 33be4eae2b20..22e8b08ecb74 100644
@@ -2077,7 +2077,7 @@ struct dw_dp *dw_dp_bind(struct device *dev, struct drm_encoder *encoder,
 
 	dp->irq = platform_get_irq(pdev, 0);
 	if (dp->irq < 0)
-		return ERR_PTR(ret);
+		return ERR_PTR(dp->irq);
 
 	ret = devm_request_threaded_irq(dev, dp->irq, NULL, dw_dp_irq,
 					IRQF_ONESHOT, dev_name(dev), dp);
Signature · 1 line
2.47.2