From: Gustavo A. R. Silva Date: Fri, 30 Jun 2017 06:24:54 +0000 (-0500) Subject: crypto: mediatek - fix error return code in mtk_crypto_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0a7d710de12a2a9bad195edc318729e0ebdcc512;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git crypto: mediatek - fix error return code in mtk_crypto_probe() Propagate the return value of platform_get_irq on failure. Signed-off-by: Gustavo A. R. Silva Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/mediatek/mtk-platform.c b/drivers/crypto/mediatek/mtk-platform.c index 000b6500a22d..b182e941b0cd 100644 --- a/drivers/crypto/mediatek/mtk-platform.c +++ b/drivers/crypto/mediatek/mtk-platform.c @@ -500,7 +500,7 @@ static int mtk_crypto_probe(struct platform_device *pdev) cryp->irq[i] = platform_get_irq(pdev, i); if (cryp->irq[i] < 0) { dev_err(cryp->dev, "no IRQ:%d resource info\n", i); - return -ENXIO; + return cryp->irq[i]; } }