Commit bbb85b25 authored by Thomas Meyer's avatar Thomas Meyer Committed by Herbert Xu

crypto: ux500 - Cocci spatch "resource_size.spatch"

Signed-off-by: default avatarThomas Meyer <thomas@m3y3r.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent a710f761
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment