]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: atmel-tdes - Switch to managed version of kzalloc
authorPramod Gurav <pramod.gurav@smartplayin.com>
Mon, 28 Jul 2014 12:16:33 +0000 (17:46 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Aug 2014 14:36:12 +0000 (22:36 +0800)
commit6684e03498f2542564c1cd1ea76017222a6597c6
tree6d4247acec127af817957a339fe5c7596dd7df0e
parent480e17462dca2133ed21f6ccebae837872d99760
crypto: atmel-tdes - Switch to managed version of kzalloc

This patch switches data allocation from kzalloc to devm_kzalloc.
It also removes some kfree() on data that was earlier allocated
using devm_kzalloc() from probe as well as remove funtions.

CC: Herbert Xu <herbert@gondor.apana.org.au>
CC: "David S. Miller" <davem@davemloft.net>
CC: Grant Likely <grant.likely@linaro.org>
CC: Rob Herring <robh+dt@kernel.org>
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-tdes.c