ehci.h: Fix duplicate definition of ehci_sync_mem
Fix duplicate definition of ehci_sync_mem
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index 2f0aa53..47823e3 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -782,23 +782,6 @@
#endif
-/*
- * Writing to dma coherent memory on ARM may be delayed via L2
- * writing buffer, so introduce the helper which can flush L2 writing
- * buffer into memory immediately, especially used to flush ehci
- * descriptor to memory.
- * */
-#ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE
-static inline void ehci_sync_mem()
-{
- mb();
-}
-#else
-static inline void ehci_sync_mem()
-{
-}
-#endif
-
/*-------------------------------------------------------------------------*/
#ifndef DEBUG