[PATCH] ARM: plat-orion: Fix num_resources and id for ge10 and ge11

Russell King - ARM Linux linux at arm.linux.org.uk
Mon May 20 05:43:08 EDT 2013


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.



More information about the linux-arm-kernel mailing list