diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-05-22 19:38:40 (GMT) |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-05-28 09:14:15 (GMT) |
commit | bbb85b25688fcdc70b895711870c23de7b12721b (patch) | |
tree | d1e4a35df9058e036fda46b8e9f897acbbe2c194 | |
parent | a710f761fc9ae5728765a5917f8beabb49f98483 (diff) | |
download | linux-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>
-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 32f4806..3f1f982 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); |