]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: ux500 - Cocci spatch "resource_size.spatch"
authorThomas Meyer <thomas@m3y3r.de>
Wed, 22 May 2013 19:38:40 +0000 (21:38 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 28 May 2013 09:14:15 +0000 (17:14 +0800)
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ux500/cryp/cryp_core.c

index 32f480622b9784336e9e281b4bceffccbd847773..3f1f9825fadb04043c6cb8b9fd6eb765f176122b 100644 (file)
@@ -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);