From: Philipp Zabel Date: Tue, 5 Aug 2014 17:00:09 +0000 (-0300) Subject: [media] coda: request BIT processor interrupt by name X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=540b72e415d6033b72037dbdb1f6c00516034250;p=openwrt%2Fstaging%2Fblogic.git [media] 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 Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- 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;