Re: [REPOST PATCH 3/3] MXC: add platform resources for i.MX21 USB host controller.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin,

--- On Sun, 11/8/09, Martin Fuzzey <mfuzzey@xxxxxxxxx> wrote:

> From: Martin Fuzzey <mfuzzey@xxxxxxxxx>
> Subject: [REPOST PATCH 3/3] MXC: add platform resources for i.MX21 USB host controller.
> To: "Greg KH" <greg@xxxxxxxxx>, "Sascha Hauer" <s.hauer@xxxxxxxxxxxxxx>
> Cc: linux-usb@xxxxxxxxxxxxxxx, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> Date: Sunday, November 8, 2009, 4:52 PM
> 
> 
> Signed-off-by: Martin Fuzzey <mfuzzey@xxxxxxxxx>
> 
> ---
> 
>  arch/arm/mach-mx2/devices.c |   27
> +++++++++++++++++++++++++++
>  arch/arm/mach-mx2/devices.h |    1 +
>  2 files changed, 28 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/mach-mx2/devices.c
> b/arch/arm/mach-mx2/devices.c
> index 3522397..4e6f5a0 100644
> --- a/arch/arm/mach-mx2/devices.c
> +++ b/arch/arm/mach-mx2/devices.c
> @@ -565,3 +565,30 @@ int __init mxc_register_gpios(void)
>  {
>      return mxc_gpio_init(imx_gpio_ports,
> ARRAY_SIZE(imx_gpio_ports));
>  }
> +
> +#ifdef CONFIG_MACH_MX21
> +static struct resource mx21_usbhc_resources[] = {
> +    [0] = {
> +       
> .start    = USBOTG_BASE_ADDR,
> +       
> .end    = USBOTG_BASE_ADDR + 0x1FFF,
> +       
> .flags    = IORESOURCE_MEM,
> +    },
> +    [1] = {
> +       
> .start        =
> MXC_INT_USBHOST,
> +       
> .end        =
> MXC_INT_USBHOST,
> +       
> .flags        =
> IORESOURCE_IRQ,
> +    },
> +};

Shouldn't you let the compiler count the array?

Regards,

Fabio Estevam


      
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux