diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-03-10 20:13:32 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-03-10 20:13:32 +0800 |
commit | 3d6f1d12f5ed7603caeeb1870174882256bd0889 (patch) | |
tree | 46b17911c315717e77dde96285e629aafd18d6cc /drivers/crypto/sahara.c | |
parent | c65a52f8360dc29116395708bde18399e4699f87 (diff) | |
download | lwn-3d6f1d12f5ed7603caeeb1870174882256bd0889.tar.gz lwn-3d6f1d12f5ed7603caeeb1870174882256bd0889.zip |
crypto: sahara - Use return value of devm_request_irq() on error
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/sahara.c')
-rw-r--r-- | drivers/crypto/sahara.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 */ |