[media] media: davinci: vpif_capture: remove unnecessary loop for IRQ resource
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Mon, 17 Jun 2013 14:20:47 +0000 (11:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 14:27:07 +0000 (11:27 -0300)
For vpif capture driver each IRQ resource contains a single IRQ
so drop the second loop.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/davinci/vpif_capture.c

index a4e0eab472892f44783b2e658b1260973e67bfe2..5514175bbd072ec92b9e4a1a472b5d00e3f51088 100644 (file)
@@ -2015,16 +2015,13 @@ static __init int vpif_probe(struct platform_device *pdev)
        }
 
        while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, res_idx))) {
-               for (i = res->start; i <= res->end; i++) {
-                       err = devm_request_irq(&pdev->dev, i, vpif_channel_isr,
-                                            IRQF_SHARED, "VPIF_Capture",
-                                            (void *)(&vpif_obj.dev[res_idx]->
-                                            channel_id));
-                       if (err) {
-                               err = -EINVAL;
-                               goto vpif_unregister;
-
-                       }
+               err = devm_request_irq(&pdev->dev, res->start, vpif_channel_isr,
+                                       IRQF_SHARED, "VPIF_Capture",
+                                       (void *)(&vpif_obj.dev[res_idx]->
+                                       channel_id));
+               if (err) {
+                       err = -EINVAL;
+                       goto vpif_unregister;
                }
                res_idx++;
        }