Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751510AbdHOLO3 (ORCPT ); Tue, 15 Aug 2017 07:14:29 -0400 Received: from ozlabs.org ([103.22.144.67]:58789 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751030AbdHOLO2 (ORCPT ); Tue, 15 Aug 2017 07:14:28 -0400 From: Michael Ellerman To: Julia Lawall , Benjamin Herrenschmidt Cc: kernel-janitors@vger.kernel.org, Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: store the intended structure In-Reply-To: <1502630663-18599-1-git-send-email-Julia.Lawall@lip6.fr> References: <1502630663-18599-1-git-send-email-Julia.Lawall@lip6.fr> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Tue, 15 Aug 2017 21:14:21 +1000 Message-ID: <87valpt75e.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1202 Lines: 32 Julia Lawall writes: > 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 > > --- > arch/powerpc/platforms/chrp/pegasos_eth.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks. This is close to EOL code I think, but I'll merge it anyway as it seems obviously correct. cheers > diff --git a/arch/powerpc/platforms/chrp/pegasos_eth.c b/arch/powerpc/platforms/chrp/pegasos_eth.c > index 2b4dc6a..1976071 100644 > --- a/arch/powerpc/platforms/chrp/pegasos_eth.c > +++ b/arch/powerpc/platforms/chrp/pegasos_eth.c > @@ -63,7 +63,7 @@ > .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[] = {