From: Cyrille Pitchen Date: Fri, 5 Feb 2016 12:45:12 +0000 (+0100) Subject: crypto: atmel-sha - fix atmel_sha_remove() X-Git-Tag: MMI-PSA29.97-13-9~8545^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d961436c11482e974b702c8324426208f00cd7c4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git crypto: atmel-sha - fix atmel_sha_remove() Since atmel_sha_probe() uses devm_xxx functions to allocate resources, atmel_sha_remove() should no longer explicitly release them. Cc: stable@vger.kernel.org Signed-off-by: Cyrille Pitchen Fixes: b0e8b3417a62 ("crypto: atmel - use devm_xxx() managed function") Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c index 20de861aa0ea..b5ab7400008d 100644 --- a/drivers/crypto/atmel-sha.c +++ b/drivers/crypto/atmel-sha.c @@ -1483,13 +1483,6 @@ static int atmel_sha_remove(struct platform_device *pdev) if (sha_dd->caps.has_dma) 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; }