Hi,

On Mon, Jan 14, 2013 at 06:12:39PM +0800, Peter Chen wrote:
> @@ -2756,22 +2753,41 @@ static int fsl_udc_otg_resume(struct device *dev)
>  
>       return fsl_udc_resume(NULL);
>  }
> -
>  /*-------------------------------------------------------------------------
>       Register entry point for the peripheral controller driver
>  --------------------------------------------------------------------------*/
> -
> +static const struct platform_device_id fsl_udc_devtype[] = {
> +     {
> +             .name = "imx-udc-mx25",
> +             .driver_data = IMX25_UDC,
> +     }, {
> +             .name = "imx-udc-mx27",
> +             .driver_data = IMX27_UDC,
> +     }, {
> +             .name = "imx-udc-mx31",
> +             .driver_data = IMX31_UDC,
> +     }, {
> +             .name = "imx-udc-mx35",
> +             .driver_data = IMX35_UDC,
> +     }, {
> +             .name = "imx-udc-mx51",
> +             .driver_data = IMX51_UDC,
> +     }
> +};

I wonder if your driver-data is actually needed since you can use string
comparisson to achieve the exact same outcome.

-- 
balbi

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to