Skip to content

Commit

Permalink
crypto: sahara - Use return value of devm_request_irq() on error
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Alexander Shiyan authored and Herbert Xu committed Mar 10, 2014
1 parent c65a52f commit 3d6f1d1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/crypto/sahara.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 3d6f1d1

Please sign in to comment.