提交 3d6f1d12 编写于 作者: A Alexander Shiyan 提交者: Herbert Xu

crypto: sahara - Use return value of devm_request_irq() on error

Signed-off-by: NAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 c65a52f8
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册