crypto: atmel-sha - fix atmel_sha_remove()
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 5 Feb 2016 12:45:12 +0000 (13:45 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 6 Feb 2016 07:23:56 +0000 (15:23 +0800)
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 <cyrille.pitchen@atmel.com>
Fixes: b0e8b3417a62 ("crypto: atmel - use devm_xxx() managed function")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha.c

index 20de861aa0ea6c275edb746e14fcb372344fcd48..b5ab7400008df638e081f427c1d0f1213c9aec8e 100644 (file)
@@ -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;
 }