[media] media: davinci: vpif_display: remove unnecessary loop for IRQ resource
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Mon, 17 Jun 2013 14:20:51 +0000 (11:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 14:28:24 +0000 (11:28 -0300)
For vpif display 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_display.c

index 1bf289d64343dbd91762c9c1076680456dbee27d..e6e57365025020f746e5958b357525e8b9a7dfce 100644 (file)
@@ -1651,16 +1651,14 @@ 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_Display",
-                                            (void *)(&vpif_obj.dev[res_idx]->
-                                            channel_id));
-                       if (err) {
-                               err = -EINVAL;
-                               vpif_err("VPIF IRQ request failed\n");
-                               goto vpif_unregister;
-                       }
+               err = devm_request_irq(&pdev->dev, res->start, vpif_channel_isr,
+                                       IRQF_SHARED, "VPIF_Display",
+                                       (void *)(&vpif_obj.dev[res_idx]->
+                                       channel_id));
+               if (err) {
+                       err = -EINVAL;
+                       vpif_err("VPIF IRQ request failed\n");
+                       goto vpif_unregister;
                }
                res_idx++;
        }