* [PATCH AUTOSEL 6.1 23/39] fbdev: omapfb: fix some error codes
[not found] <20231029225740.790936-1-sashal@kernel.org>
@ 2023-10-29 22:56 ` Sasha Levin
0 siblings, 0 replies; only message in thread
From: Sasha Levin @ 2023-10-29 22:56 UTC (permalink / raw)
To: linux-kernel, stable
Cc: Dan Carpenter, Helge Deller, Sasha Levin, sam, tzimmermann,
xu.panda, u.kleine-koenig, mielkesteven, linux-fbdev, linux-omap,
dri-devel
From: Dan Carpenter <dan.carpenter@linaro.org>
[ Upstream commit dc608db793731426938baa2f0e75a4a3cce5f5cf ]
Return negative -ENXIO instead of positive ENXIO.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/video/fbdev/omap/omapfb_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c
index 17cda57656838..5ea7c52baa5a8 100644
--- a/drivers/video/fbdev/omap/omapfb_main.c
+++ b/drivers/video/fbdev/omap/omapfb_main.c
@@ -1643,13 +1643,13 @@ static int omapfb_do_probe(struct platform_device *pdev,
}
fbdev->int_irq = platform_get_irq(pdev, 0);
if (fbdev->int_irq < 0) {
- r = ENXIO;
+ r = -ENXIO;
goto cleanup;
}
fbdev->ext_irq = platform_get_irq(pdev, 1);
if (fbdev->ext_irq < 0) {
- r = ENXIO;
+ r = -ENXIO;
goto cleanup;
}
--
2.42.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-29 23:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20231029225740.790936-1-sashal@kernel.org>
2023-10-29 22:56 ` [PATCH AUTOSEL 6.1 23/39] fbdev: omapfb: fix some error codes Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox