Commit 0316b89a authored by Manjunath Hadli's avatar Manjunath Hadli Committed by Mauro Carvalho Chehab

[media] davinci: vpif: make request_irq flags as shared

omap-l138 shares the interrupt between capture and display.
Make sure we are able to request for the same irq number
by making a shared irq request.
Signed-off-by: default avatarManjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: default avatarLad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0a63172a
...@@ -2189,7 +2189,7 @@ static __init int vpif_probe(struct platform_device *pdev) ...@@ -2189,7 +2189,7 @@ static __init int vpif_probe(struct platform_device *pdev)
k = 0; k = 0;
while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, k))) { while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, k))) {
for (i = res->start; i <= res->end; i++) { for (i = res->start; i <= res->end; i++) {
if (request_irq(i, vpif_channel_isr, IRQF_DISABLED, if (request_irq(i, vpif_channel_isr, IRQF_SHARED,
"VPIF_Capture", "VPIF_Capture",
(void *)(&vpif_obj.dev[k]->channel_id))) { (void *)(&vpif_obj.dev[k]->channel_id))) {
err = -EBUSY; err = -EBUSY;
......
...@@ -1709,7 +1709,7 @@ static __init int vpif_probe(struct platform_device *pdev) ...@@ -1709,7 +1709,7 @@ static __init int vpif_probe(struct platform_device *pdev)
k = 0; k = 0;
while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, k))) { while ((res = platform_get_resource(pdev, IORESOURCE_IRQ, k))) {
for (i = res->start; i <= res->end; i++) { for (i = res->start; i <= res->end; i++) {
if (request_irq(i, vpif_channel_isr, IRQF_DISABLED, if (request_irq(i, vpif_channel_isr, IRQF_SHARED,
"VPIF_Display", "VPIF_Display",
(void *)(&vpif_obj.dev[k]->channel_id))) { (void *)(&vpif_obj.dev[k]->channel_id))) {
err = -EBUSY; err = -EBUSY;
......
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