mirror of https://gitee.com/openkylin/linux.git
[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:
parent
4869ce9d1a
commit
fc738177f8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue