summaryrefslogtreecommitdiff
path: root/drivers/crypto/ux500
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-05-22 23:38:40 +0400
committerHerbert Xu <herbert@gondor.apana.org.au>2013-05-28 13:14:15 +0400
commitbbb85b25688fcdc70b895711870c23de7b12721b (patch)
treed1e4a35df9058e036fda46b8e9f897acbbe2c194 /drivers/crypto/ux500
parenta710f761fc9ae5728765a5917f8beabb49f98483 (diff)
downloadlinux-bbb85b25688fcdc70b895711870c23de7b12721b.tar.xz
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);