Skip to content

Commit

Permalink
fbdev: omapfb: fix some error codes
Browse files Browse the repository at this point in the history
[ Upstream commit dc608db ]

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>
  • Loading branch information
Dan Carpenter authored and gregkh committed Nov 8, 2023
1 parent 93ff329 commit 0a997e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/fbdev/omap/omapfb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1648,13 +1648,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;
}

Expand Down

0 comments on commit 0a997e6

Please sign in to comment.