From: Alexander Shiyan Date: Mon, 10 Mar 2014 12:13:32 +0000 (+0800) Subject: crypto: sahara - Use return value of devm_request_irq() on error X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d6f1d12f5ed7603caeeb1870174882256bd0889;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git crypto: sahara - Use return value of devm_request_irq() on error Signed-off-by: Alexander Shiyan Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index 894468fdb02d..07a5987ce67d 100644 --- a/drivers/crypto/sahara.c +++ b/drivers/crypto/sahara.c @@ -896,10 +896,11 @@ static int sahara_probe(struct platform_device *pdev) return irq; } - if (devm_request_irq(&pdev->dev, irq, sahara_irq_handler, - 0, SAHARA_NAME, dev) < 0) { + err = devm_request_irq(&pdev->dev, irq, sahara_irq_handler, + 0, dev_name(&pdev->dev), dev); + if (err) { dev_err(&pdev->dev, "failed to request irq\n"); - return -ENOENT; + return err; } /* clocks */