From: Thomas Meyer Date: Wed, 22 May 2013 19:38:40 +0000 (+0200) Subject: crypto: ux500 - Cocci spatch "resource_size.spatch" X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bbb85b25688fcdc70b895711870c23de7b12721b;p=linux-beck.git crypto: ux500 - Cocci spatch "resource_size.spatch" Signed-off-by: Thomas Meyer Signed-off-by: Herbert Xu --- 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);