Commit bce2a228 authored by Joel Fernandes's avatar Joel Fernandes Committed by Herbert Xu

crypto: omap-aes - Convert request_irq to devm_request_irq

Keeps request_irq exit/error code paths simpler.
Suggested-by: default avatarLokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: default avatarJoel Fernandes <joelf@ti.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 05007c10
...@@ -1207,7 +1207,7 @@ static int omap_aes_probe(struct platform_device *pdev) ...@@ -1207,7 +1207,7 @@ static int omap_aes_probe(struct platform_device *pdev)
goto err_irq; goto err_irq;
} }
err = request_irq(irq, omap_aes_irq, 0, err = devm_request_irq(dev, irq, omap_aes_irq, 0,
dev_name(dev), dd); dev_name(dev), dd);
if (err) { if (err) {
dev_err(dev, "Unable to grab omap-aes IRQ\n"); dev_err(dev, "Unable to grab omap-aes IRQ\n");
...@@ -1242,9 +1242,7 @@ static int omap_aes_probe(struct platform_device *pdev) ...@@ -1242,9 +1242,7 @@ static int omap_aes_probe(struct platform_device *pdev)
for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--) for (j = dd->pdata->algs_info[i].registered - 1; j >= 0; j--)
crypto_unregister_alg( crypto_unregister_alg(
&dd->pdata->algs_info[i].algs_list[j]); &dd->pdata->algs_info[i].algs_list[j]);
if (dd->pio_only) if (!dd->pio_only)
free_irq(irq, dd);
else
omap_aes_dma_cleanup(dd); omap_aes_dma_cleanup(dd);
err_irq: err_irq:
tasklet_kill(&dd->done_task); tasklet_kill(&dd->done_task);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment