summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2017-08-13 16:24:23 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-15 14:13:13 +0300
commit36992606eee8016c36ad2576687e97422f2f35ed (patch)
treecc832b44c970c5993eb05c6c0cd233965390c1b6 /arch/powerpc
parent6c80d3164ece26e55dc2dbfceba948d074f670f0 (diff)
downloadlinux-36992606eee8016c36ad2576687e97422f2f35ed.tar.xz
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>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/chrp/pegasos_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/chrp/pegasos_eth.c b/arch/powerpc/platforms/chrp/pegasos_eth.c
index 2b4dc6abde6c..19760712b39d 100644
--- a/arch/powerpc/platforms/chrp/pegasos_eth.c
+++ b/arch/powerpc/platforms/chrp/pegasos_eth.c
@@ -63,7 +63,7 @@ static struct platform_device mv643xx_eth_mvmdio_device = {
.name = "orion-mdio",
.id = -1,
.num_resources = ARRAY_SIZE(mv643xx_eth_mvmdio_resources),
- .resource = mv643xx_eth_shared_resources,
+ .resource = mv643xx_eth_mvmdio_resources,
};
static struct resource mv643xx_eth_port1_resources[] = {