[PATCH v4] [ARM] MX1: Add ARMadeus Systems APF9328 board support

Fabio Estevam festevam at gmail.com
Wed Apr 27 08:55:04 EDT 2011


2011/4/26 Gwenhael Goavec-Merou <gwenhael.goavec-merou at armadeus.com>:
...
> +static struct resource dm9000_resources[] = {
> +       [0] = {
> +               .start  = MX1_CS4_PHYS + 0x00C00000,
> +               .end    = MX1_CS4_PHYS + 0x00C00001,
> +               .flags  = IORESOURCE_MEM,
> +       },
> +       [1] = {
> +               .start  = MX1_CS4_PHYS + 0x00C00002,
> +               .end    = MX1_CS4_PHYS + 0x00C00003,
> +               .flags  = IORESOURCE_MEM,
> +       },
> +       [2] = {
> +               .start  = IRQ_GPIOB(14),
> +               .end    = IRQ_GPIOB(14),
> +               .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
> +       },
> +};

No need to explicitly show the array index. The compiler can count it by itself.

Regards,

Fabio Estevam


More information about the linux-arm-kernel mailing list