From: Niklas Söderlund Date: Mon, 15 Aug 2016 15:06:30 +0000 (-0300) Subject: [media] rcar-vin: return correct error from platform_get_irq() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fc738177f837742d21707cd773b2c86233e277ee;p=openwrt%2Fstaging%2Fblogic.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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/rcar-vin/rcar-core.c b/drivers/media/platform/rcar-vin/rcar-core.c index a1eb26b2eea0..394113486291 100644 --- a/drivers/media/platform/rcar-vin/rcar-core.c +++ b/drivers/media/platform/rcar-vin/rcar-core.c @@ -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)