Commit bfbe37f0 authored by Julia Lawall's avatar Julia Lawall Committed by Michael Ellerman

powerpc/83xx: use resource_size

Use resource_size rather than a verbose computation on
the end and start fields.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

<smpl>
@@ struct resource ptr; @@
- (ptr.end - ptr.start + 1)
+ resource_size(&ptr)
</smpl>
Signed-off-by: default avatarJulia Lawall <Julia.Lawall@inria.fr>
Acked-by: default avatarScott Wood <oss@buserror.net>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1577900990-8588-6-git-send-email-Julia.Lawall@inria.fr
parent 5084ff33
......@@ -64,7 +64,7 @@ static void quirk_mpc8360e_qe_enet10(void)
return;
}
base = ioremap(res.start, res.end - res.start + 1);
base = ioremap(res.start, resource_size(&res));
/*
* set output delay adjustments to default values according
......
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