diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2015-02-03 13:07:23 -0600 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-02-27 22:48:48 +1300 |
commit | be03a3a0961eba0bc695fa91ac87efe5f4b8f40c (patch) | |
tree | 7596612d757a27c640c15d12c881ec8a0001c1cb /drivers/crypto/ccp/ccp-dev.c | |
parent | 261bf074899a1a4624d8a0c6bfae3e92d12ef19f (diff) | |
download | linux-be03a3a0961eba0bc695fa91ac87efe5f4b8f40c.tar.gz linux-be03a3a0961eba0bc695fa91ac87efe5f4b8f40c.tar.bz2 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.c | 2 |
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; |