summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ux500
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-05-22 21:38:40 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2013-05-28 11:14:15 +0200
commitbbb85b25688fcdc70b895711870c23de7b12721b (patch)
treed1e4a35df9058e036fda46b8e9f897acbbe2c194 /drivers/crypto/ux500
parentcrypto: sha256_ssse3 - add sha224 support (diff)
downloadlinux-bbb85b25688fcdc70b895711870c23de7b12721b.tar.xz
linux-bbb85b25688fcdc70b895711870c23de7b12721b.zip
crypto: ux500 - Cocci spatch "resource_size.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ux500')
-rw-r--r--drivers/crypto/ux500/cryp/cryp_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c
index 32f480622b97..3f1f9825fadb 100644
--- a/drivers/crypto/ux500/cryp/cryp_core.c
+++ b/drivers/crypto/ux500/cryp/cryp_core.c
@@ -1600,7 +1600,7 @@ static int ux500_cryp_remove(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (res)
- release_mem_region(res->start, res->end - res->start + 1);
+ release_mem_region(res->start, resource_size(res));
kfree(device_data);