linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: plat-orion: Fix num_resources and id for ge10 and ge11
Date: Mon, 20 May 2013 10:43:08 +0100	[thread overview]
Message-ID: <20130520094308.GU18614@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1368994363-14762-1-git-send-email-gregory.clement@free-electrons.com>

On Sun, May 19, 2013 at 10:12:43PM +0200, Gregory CLEMENT wrote:
>  static struct platform_device orion_ge10 = {
>  	.name		= MV643XX_ETH_NAME,
> -	.id		= 1,
> -	.num_resources	= 2,
> +	.id		= 2,
> +	.num_resources	= 1,

Please consider using:

	.num_resources	= ARRAY_SIZE(orion_ge10_resources),

to help you avoid having the wrong number of resources specified.

  parent reply	other threads:[~2013-05-20  9:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-19 20:12 [PATCH] ARM: plat-orion: Fix num_resources and id for ge10 and ge11 Gregory CLEMENT
2013-05-20  8:22 ` Andrew Lunn
2013-05-20 17:13   ` Jason Cooper
2013-05-20 17:24     ` Andrew Lunn
2013-05-20 17:30       ` Jason Cooper
2013-05-20  9:43 ` Russell King - ARM Linux [this message]
2013-05-20 17:44 ` Jason Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130520094308.GU18614@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).