summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ccp/ccp-dev.c
diff options
context:
space:
mode:
authorTom Lendacky <thomas.lendacky@amd.com>2015-02-03 13:07:23 -0600
committerHerbert Xu <herbert@gondor.apana.org.au>2015-02-27 22:48:48 +1300
commitbe03a3a0961eba0bc695fa91ac87efe5f4b8f40c (patch)
tree7596612d757a27c640c15d12c881ec8a0001c1cb /drivers/crypto/ccp/ccp-dev.c
parent261bf074899a1a4624d8a0c6bfae3e92d12ef19f (diff)
downloadblackbird-obmc-linux-be03a3a0961eba0bc695fa91ac87efe5f4b8f40c.tar.gz
blackbird-obmc-linux-be03a3a0961eba0bc695fa91ac87efe5f4b8f40c.zip
crypto: ccp - Convert calls to their devm_ counterparts
Where applicable, convert calls to their devm_ counterparts, e.g. kzalloc to devm_kzalloc. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/ccp-dev.c')
-rw-r--r--drivers/crypto/ccp/ccp-dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-dev.c b/drivers/crypto/ccp/ccp-dev.c
index 68c637af2c42..861bacc1bb94 100644
--- a/drivers/crypto/ccp/ccp-dev.c
+++ b/drivers/crypto/ccp/ccp-dev.c
@@ -295,7 +295,7 @@ struct ccp_device *ccp_alloc_struct(struct device *dev)
{
struct ccp_device *ccp;
- ccp = kzalloc(sizeof(*ccp), GFP_KERNEL);
+ ccp = devm_kzalloc(dev, sizeof(*ccp), GFP_KERNEL);
if (!ccp)
return NULL;
ccp->dev = dev;
OpenPOWER on IntegriCloud