diff options
author | Thomas Meyer | 2013-05-22 21:38:40 +0200 |
---|---|---|
committer | Herbert Xu | 2013-05-28 17:14:15 +0800 |
commit | bbb85b25688fcdc70b895711870c23de7b12721b (patch) | |
tree | d1e4a35df9058e036fda46b8e9f897acbbe2c194 /drivers/crypto | |
parent | a710f761fc9ae5728765a5917f8beabb49f98483 (diff) |
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')
-rw-r--r-- | drivers/crypto/ux500/cryp/cryp_core.c | 2 |
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); |