crypto: atmel-sha - Switch to managed version of kzalloc
authorPramod Gurav <pramod.gurav@smartplayin.com>
Mon, 28 Jul 2014 12:15:56 +0000 (17:45 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Aug 2014 14:36:12 +0000 (22:36 +0800)
commit593901aa046b175e2948d361e439e13e58036146
treece9de2df216575c435bb2a5ef0a93a93d361cb94
parent3b9b8fe0ade1ee84ee4058261d2e39a1f283704b
crypto: atmel-sha - Switch to managed version of kzalloc

This patch switches data allocation from kzalloc to devm_kzalloc.
It also removed some kfree() on data that was earlier allocated
using devm_kzalloc().

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>
CC: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha.c