powerpc/83xx: use resource_size
authorJulia Lawall <Julia.Lawall@inria.fr>
Wed, 1 Jan 2020 17:49:45 +0000 (18:49 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Jan 2020 11:04:40 +0000 (22:04 +1100)
commitbfbe37f0ce994e7a9945653d7624fadc5c500a9f
treed27024ac860ff294ceafaa732a8e6d430305bf5a
parent5084ff33cac0988c1b979814501dcc2e1ecbf9c0
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: Julia Lawall <Julia.Lawall@inria.fr>
Acked-by: Scott Wood <oss@buserror.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1577900990-8588-6-git-send-email-Julia.Lawall@inria.fr
arch/powerpc/platforms/83xx/km83xx.c