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)
commitc659d07f11a359aa053e35d3ee549289c86fab64
tree6d4247acec127af817957a339fe5c7596dd7df0e
parent593901aa046b175e2948d361e439e13e58036146
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