[media] rcar-vin: return correct error from platform_get_irq()

Fix a error from the original driver where the wrong error code is
returned if the driver fails to get a IRQ number from
platform_get_irq().

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
Niklas Söderlund 2016-08-15 12:06:30 -03:00 committed by Mauro Carvalho Chehab
parent 4869ce9d1a
commit fc738177f8
1 changed files with 2 additions and 2 deletions

View File

@ -282,8 +282,8 @@ static int rcar_vin_probe(struct platform_device *pdev)
return PTR_ERR(vin->base);
irq = platform_get_irq(pdev, 0);
if (irq <= 0)
return ret;
if (irq < 0)
return irq;
ret = rvin_dma_probe(vin, irq);
if (ret)