提交 fc738177 编写于 作者: N Niklas Söderlund 提交者: Mauro Carvalho Chehab

[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: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 4869ce9d
...@@ -282,8 +282,8 @@ static int rcar_vin_probe(struct platform_device *pdev) ...@@ -282,8 +282,8 @@ static int rcar_vin_probe(struct platform_device *pdev)
return PTR_ERR(vin->base); return PTR_ERR(vin->base);
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
if (irq <= 0) if (irq < 0)
return ret; return irq;
ret = rvin_dma_probe(vin, irq); ret = rvin_dma_probe(vin, irq);
if (ret) if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册