From: Gustavo A. R. Silva Date: Fri, 30 Jun 2017 07:07:04 +0000 (-0500) Subject: crypto: omap-des - fix error return code in omap_des_probe() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3822c331c5be580d8f9f65bdd6c0c187e0c5b503;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git crypto: omap-des - fix error return code in omap_des_probe() Print and 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/omap-des.c b/drivers/crypto/omap-des.c index 0bcab00e0ff5..d37c9506c36c 100644 --- a/drivers/crypto/omap-des.c +++ b/drivers/crypto/omap-des.c @@ -1023,7 +1023,8 @@ static int omap_des_probe(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); if (irq < 0) { - dev_err(dev, "can't get IRQ resource\n"); + dev_err(dev, "can't get IRQ resource: %d\n", irq); + err = irq; goto err_irq; }