diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-10-16 14:19:52 +0300 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2023-10-16 23:04:26 +0200 |
commit | dc608db793731426938baa2f0e75a4a3cce5f5cf (patch) | |
tree | 2a06ba3a987e356a413e95bfc8c4831ac196886f | |
parent | c1a8d1d0edb71dec15c9649cb56866c71c1ecd9e (diff) | |
download | linux-stable-dc608db793731426938baa2f0e75a4a3cce5f5cf.tar.gz linux-stable-dc608db793731426938baa2f0e75a4a3cce5f5cf.tar.bz2 linux-stable-dc608db793731426938baa2f0e75a4a3cce5f5cf.zip |
fbdev: omapfb: fix some error codes
Return negative -ENXIO instead of positive ENXIO.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r-- | drivers/video/fbdev/omap/omapfb_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/omap/omapfb_main.c b/drivers/video/fbdev/omap/omapfb_main.c index f28cb90947a3..42c96f1cfc93 100644 --- a/drivers/video/fbdev/omap/omapfb_main.c +++ b/drivers/video/fbdev/omap/omapfb_main.c @@ -1645,13 +1645,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; } |