Signed-off-by: Alexander Shiyan <shc_w...@mail.ru>
---
 drivers/crypto/sahara.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c
index 894468f..07a5987 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 */
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to