mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fbdev: pxafb: preserve IRQ probe errors
@ 2026-10-31  3:32 Matthias Goergens
  0 siblings, 0 replies; only message in thread
From: Matthias Goergens @ 2026-10-31  3:32 UTC (permalink / raw)
  To: Helge Deller; +Cc: linux-fbdev, dri-devel, linux-kernel

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.

Link: https://lore.kernel.org/dri-devel/20260722075803.570532-1-panchuang@vivo.com
---
 drivers/video/fbdev/pxafb.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c
index 1682345fb9b0..1912cfce28d6 100644
--- a/drivers/video/fbdev/pxafb.c
+++ b/drivers/video/fbdev/pxafb.c
@@ -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
-- 
2.56.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-31  3:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-31  3:32 [PATCH] fbdev: pxafb: preserve IRQ probe errors Matthias Goergens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®