Commit dc608db7 authored by Dan Carpenter's avatar Dan Carpenter Committed by Helge Deller

fbdev: omapfb: fix some error codes

Return negative -ENXIO instead of positive ENXIO.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent c1a8d1d0
...@@ -1645,13 +1645,13 @@ static int omapfb_do_probe(struct platform_device *pdev, ...@@ -1645,13 +1645,13 @@ static int omapfb_do_probe(struct platform_device *pdev,
} }
fbdev->int_irq = platform_get_irq(pdev, 0); fbdev->int_irq = platform_get_irq(pdev, 0);
if (fbdev->int_irq < 0) { if (fbdev->int_irq < 0) {
r = ENXIO; r = -ENXIO;
goto cleanup; goto cleanup;
} }
fbdev->ext_irq = platform_get_irq(pdev, 1); fbdev->ext_irq = platform_get_irq(pdev, 1);
if (fbdev->ext_irq < 0) { if (fbdev->ext_irq < 0) {
r = ENXIO; r = -ENXIO;
goto cleanup; goto cleanup;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment