Skip to content

Commit

Permalink
crypto: ux500 - Cocci spatch "resource_size.spatch"
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Thomas Meyer authored and Herbert Xu committed May 28, 2013
1 parent a710f76 commit bbb85b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/ux500/cryp/cryp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit bbb85b2

Please sign in to comment.