Leo,
> +static void fsl_free_buffer(struct usb_ep *_ep, void *buf,
> + dma_addr_t dma, unsigned bytes)
> +{
> + struct fsl_ep *ep;
> +
> + if (!_ep)
> + return NULL;
This won't compile. A void function can't return anything, including NULL.
[snip]
> +static struct fsl_udc *__init struct_udc_setup(struct platform_device *pdev)
> +{
> + struct fsl_udc *udc;
> + struct fsl_usb2_platform_data *pdata;
> + size_t size;
> +
> + udc = kzalloc(sizeof(struct fsl_udc), GFP_KERNEL);
> + if (udc == NULL) {
> + ERR("malloc udc failed\n");
> + return NULL;
> + }
> +
> + pdata = pdev->dev.platform_data;
> + udc->phy_mode = pdata->phy_mode;
> + /* max_ep_nr is bidirectional ep number, max_ep doubles the number */
> + udc->max_ep = pdata->max_ep_nr * 2;
I get this error when I compile:
drivers/usb/gadget/fsl_usb2_udc.c: In function 'struct_udc_setup':
drivers/usb/gadget/fsl_usb2_udc.c:2205: error: 'struct fsl_usb2_platform_data'
h as no
member named 'max_ep_nr'
--
Timur Tabi
Linux Kernel Developer @ Freescale
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel