media: bcm2835-unicam: Do not replace IRQ retcode during probe
[linux-block.git] / drivers / media / platform / broadcom / bcm2835-unicam.c
index b11bcec5b225ea9c4a212a370ab7ac7310767970..94cd66255b7e5a17aec2d406dd8a7b383d29cfc1 100644 (file)
@@ -2661,9 +2661,8 @@ static int unicam_probe(struct platform_device *pdev)
        }
 
        ret = platform_get_irq(pdev, 0);
-       if (ret <= 0) {
+       if (ret < 0) {
                dev_err(&pdev->dev, "No IRQ resource\n");
-               ret = -EINVAL;
                goto err_unicam_put;
        }
 
@@ -2671,7 +2670,6 @@ static int unicam_probe(struct platform_device *pdev)
                               "unicam_capture0", unicam);
        if (ret) {
                dev_err(&pdev->dev, "Unable to request interrupt\n");
-               ret = -EINVAL;
                goto err_unicam_put;
        }