]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/chrp: Store the intended structure
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 13 Aug 2017 13:24:23 +0000 (15:24 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Aug 2017 11:13:13 +0000 (21:13 +1000)
commitb46fd3f3b5e3059f4678d556266b5f989850d658
treecc832b44c970c5993eb05c6c0cd233965390c1b6
parentfc7de2d29ec9c6ce725b9eeda8588ebf270a1ca5
powerpc/chrp: Store the intended structure

Normally the values in the resource field and the argument to ARRAY_SIZE
in the num_resources are the same.  In this case, the value in the reousrce
field is the same as the one in the previous platform_device structure, and
appears to be a copy-paste error.  Replace the value in the resource field
with the argument to the local call to ARRAY_SIZE.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/chrp/pegasos_eth.c