fbdev: omapfb: fix some error codes
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 16 Oct 2023 11:19:52 +0000 (14:19 +0300)
committerHelge Deller <deller@gmx.de>
Mon, 16 Oct 2023 21:04:26 +0000 (23:04 +0200)
Return negative -ENXIO instead of positive ENXIO.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/omap/omapfb_main.c

index f28cb90947a3412076a203368828044aa4241093..42c96f1cfc93c435ccf94154da2110bae0d4f082 100644 (file)
@@ -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;
        }