aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/pxa2xx_udc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/pxa2xx_udc.c')
-rw-r--r--drivers/usb/gadget/pxa2xx_udc.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/usb/gadget/pxa2xx_udc.c b/drivers/usb/gadget/pxa2xx_udc.c
index 484de6e97662..63b9521c1322 100644
--- a/drivers/usb/gadget/pxa2xx_udc.c
+++ b/drivers/usb/gadget/pxa2xx_udc.c
@@ -341,26 +341,6 @@ pxa2xx_ep_free_request (struct usb_ep *_ep, struct usb_request *_req)
341 kfree(req); 341 kfree(req);
342} 342}
343 343
344
345static void *
346pxa2xx_ep_alloc_buffer(struct usb_ep *_ep, unsigned bytes,
347 dma_addr_t *dma, gfp_t gfp_flags)
348{
349 char *retval;
350
351 retval = kmalloc (bytes, gfp_flags & ~(__GFP_DMA|__GFP_HIGHMEM));
352 if (retval)
353 *dma = (dma_addr_t)~0;
354 return retval;
355}
356
357static void
358pxa2xx_ep_free_buffer(struct usb_ep *_ep, void *buf, dma_addr_t dma,
359 unsigned bytes)
360{
361 kfree (buf);
362}
363
364/*-------------------------------------------------------------------------*/ 344/*-------------------------------------------------------------------------*/
365 345
366/* 346/*
@@ -927,9 +907,6 @@ static struct usb_ep_ops pxa2xx_ep_ops = {
927 .alloc_request = pxa2xx_ep_alloc_request, 907 .alloc_request = pxa2xx_ep_alloc_request,
928 .free_request = pxa2xx_ep_free_request, 908 .free_request = pxa2xx_ep_free_request,
929 909
930 .alloc_buffer = pxa2xx_ep_alloc_buffer,
931 .free_buffer = pxa2xx_ep_free_buffer,
932
933 .queue = pxa2xx_ep_queue, 910 .queue = pxa2xx_ep_queue,
934 .dequeue = pxa2xx_ep_dequeue, 911 .dequeue = pxa2xx_ep_dequeue,
935 912