aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2014-08-05 19:00:09 +0200
committerKamil Debski <k.debski@samsung.com>2014-08-06 14:29:18 +0200
commit0dfde3d1203ef956d623487b2180ce12374b706f (patch)
tree29a87c970f5d56944959a3cad9721609790b9a86
parent9cad4423e2b21527e79d45b6563203f168de02ed (diff)
coda: request BIT processor interrupt by name
Request the main coda interrupt using its name, "bit", if available. Fall back to requesting the first interrupt for backwards compatibility. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Kamil Debski <k.debski@samsung.com>
-rw-r--r--drivers/media/platform/coda/coda-common.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index dc9740d0ea5e..86fc527a7782 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -1835,7 +1835,9 @@ static int coda_probe(struct platform_device *pdev)
return PTR_ERR(dev->regs_base);
/* IRQ */
- irq = platform_get_irq(pdev, 0);
+ irq = platform_get_irq_byname(pdev, "bit");
+ if (irq < 0)
+ irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(&pdev->dev, "failed to get irq resource\n");
return irq;

Privacy Policy