crypto: atmel-sha - fix atmel_sha_remove()
commitd961436c11
upstream. Since atmel_sha_probe() uses devm_xxx functions to allocate resources, atmel_sha_remove() should no longer explicitly release them. Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com> Fixes:b0e8b3417a
("crypto: atmel - use devm_xxx() managed function") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
12426bd6b0
commit
714e7964f7
@ -1484,13 +1484,6 @@ static int atmel_sha_remove(struct platform_device *pdev)
|
|||||||
if (sha_dd->caps.has_dma)
|
if (sha_dd->caps.has_dma)
|
||||||
atmel_sha_dma_cleanup(sha_dd);
|
atmel_sha_dma_cleanup(sha_dd);
|
||||||
|
|
||||||
iounmap(sha_dd->io_base);
|
|
||||||
|
|
||||||
clk_put(sha_dd->iclk);
|
|
||||||
|
|
||||||
if (sha_dd->irq >= 0)
|
|
||||||
free_irq(sha_dd->irq, sha_dd);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user