Skip to content

Commit dc608db

Browse files
Dan Carpenterhdeller
authored andcommitted
fbdev: omapfb: fix some error codes
Return negative -ENXIO instead of positive ENXIO. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent c1a8d1d commit dc608db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/fbdev/omap/omapfb_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1645,13 +1645,13 @@ static int omapfb_do_probe(struct platform_device *pdev,
16451645
}
16461646
fbdev->int_irq = platform_get_irq(pdev, 0);
16471647
if (fbdev->int_irq < 0) {
1648-
r = ENXIO;
1648+
r = -ENXIO;
16491649
goto cleanup;
16501650
}
16511651

16521652
fbdev->ext_irq = platform_get_irq(pdev, 1);
16531653
if (fbdev->ext_irq < 0) {
1654-
r = ENXIO;
1654+
r = -ENXIO;
16551655
goto cleanup;
16561656
}
16571657

0 commit comments

Comments
 (0)