mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 22:34:21 +08:00
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>
This commit is contained in:
parent
c1a8d1d0ed
commit
dc608db793
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user