mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 03:33:58 +08:00
[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 <p.zabel@pengutronix.de> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
5727a5a4a1
commit
540b72e415
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user