Skip to contentSkip to conversation

fbdev: pxafb: preserve IRQ probe errors

PATCH New Matthias Goergens 1 participant 1 message Oct 31 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fbdev: pxafb: preserve IRQ probe errors

Preserve platform_get_irq() and devm_request_irq() errors, including -EPROBE_DEFER, instead of replacing them with -ENODEV and -EBUSY.

Found by Sashiko AI review.

---
 drivers/video/fbdev/pxafb.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/video/fbdev/pxafb.c +2 -4
index 1682345fb9b0..1912cfce28d6 100644
@@ -2306,15 +2306,13 @@ static int pxafb_probe(struct platform_device *dev)
 
 	irq = platform_get_irq(dev, 0);
 	if (irq < 0) {
-		ret = -ENODEV;
+		ret = irq;
 		goto failed_free_mem;
 	}
 
 	ret = devm_request_irq(&dev->dev, irq, pxafb_handle_irq, 0, "LCD", fbi);
-	if (ret) {
-		ret = -EBUSY;
+	if (ret)
 		goto failed_free_mem;
-	}
 
 	ret = pxafb_smart_init(fbi);
 	if (ret) {

base-commit: d89e1d186ec9271bf78e62771779e9fc03bf0fc3
prerequisite-patch-id: 44b1c2680cb029871e123eb11eab7764a807ef24

Signature · 1 line
2.56.0