From: Julia Lawall Date: Sun, 13 Aug 2017 13:24:23 +0000 (+0200) Subject: powerpc/chrp: Store the intended structure X-Git-Tag: rel_imx_4.19.35_1.1.0~11783^2~215 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=36992606eee8016c36ad2576687e97422f2f35ed;p=linux.git 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 Signed-off-by: Michael Ellerman --- 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[] = {