2013-05-22 20:01:40

by Thomas Meyer

[permalink] [raw]
Subject: [PATCH] crypto: ux50: Cocci spatch "resource_size.spatch"


Signed-off-by: Thomas Meyer <[email protected]>
---

diff -u -p a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c
--- 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 plat

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);



2013-05-28 09:53:23

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH] crypto: ux50: Cocci spatch "resource_size.spatch"

On Wed, May 22, 2013 at 09:38:40PM +0200, Thomas Meyer wrote:
>
> Signed-off-by: Thomas Meyer <[email protected]>

Patch applied.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt