aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>2014-12-20 17:30:11 -0500
committerFelipe Balbi <balbi@ti.com>2015-01-12 13:13:24 -0500
commitd16cd0b8f70062f7d0f96adc42f86421b71eb21c (patch)
treec8a323ed8d01f77de206ae9d54da9ff28f28113d /drivers
parentdc93b41a15614f51bc1ea47d12b245d60f79731d (diff)
usb: gadget: udc: s3c2410_udc.c: Remove some unused functions
Removes some functions that are not used anywhere: s3c2410_udc_clear_ep_state() s3c2410_udc_set_ep0_sse_out() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/gadget/udc/s3c2410_udc.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c
index 824cf12e9add..256a67ba2158 100644
--- a/drivers/usb/gadget/udc/s3c2410_udc.c
+++ b/drivers/usb/gadget/udc/s3c2410_udc.c
@@ -238,14 +238,6 @@ static inline void s3c2410_udc_set_ep0_de_out(void __iomem *base)
238 S3C2410_UDC_EP0_CSR_REG); 238 S3C2410_UDC_EP0_CSR_REG);
239} 239}
240 240
241static inline void s3c2410_udc_set_ep0_sse_out(void __iomem *base)
242{
243 udc_writeb(base, S3C2410_UDC_INDEX_EP0, S3C2410_UDC_INDEX_REG);
244 udc_writeb(base, (S3C2410_UDC_EP0_CSR_SOPKTRDY
245 | S3C2410_UDC_EP0_CSR_SSE),
246 S3C2410_UDC_EP0_CSR_REG);
247}
248
249static inline void s3c2410_udc_set_ep0_de_in(void __iomem *base) 241static inline void s3c2410_udc_set_ep0_de_in(void __iomem *base)
250{ 242{
251 udc_writeb(base, S3C2410_UDC_INDEX_EP0, S3C2410_UDC_INDEX_REG); 243 udc_writeb(base, S3C2410_UDC_INDEX_EP0, S3C2410_UDC_INDEX_REG);
@@ -291,18 +283,6 @@ static void s3c2410_udc_nuke(struct s3c2410_udc *udc,
291 } 283 }
292} 284}
293 285
294static inline void s3c2410_udc_clear_ep_state(struct s3c2410_udc *dev)
295{
296 unsigned i;
297
298 /* hardware SET_{CONFIGURATION,INTERFACE} automagic resets endpoint
299 * fifos, and pending transactions mustn't be continued in any case.
300 */
301
302 for (i = 1; i < S3C2410_ENDPOINTS; i++)
303 s3c2410_udc_nuke(dev, &dev->ep[i], -ECONNABORTED);
304}
305
306static inline int s3c2410_udc_fifo_count_out(void) 286static inline int s3c2410_udc_fifo_count_out(void)
307{ 287{
308 int tmp; 288 int tmp;