]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
bouncebuf: remove dummy implementation
authorStephen Warren <swarren@nvidia.com>
Tue, 6 Nov 2012 11:27:28 +0000 (11:27 +0000)
committerAndy Fleming <afleming@freescale.com>
Tue, 27 Nov 2012 23:26:48 +0000 (17:26 -0600)
If any driver ever needs to use the bounce buffer API, it always needs
to use it. As such, providing a dummy implementation of those APIs when
CONFIG_BOUNCE_BUFFER isn't defined does not make sense. Remove the dummy
implementation.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Andy Fleming <afleming@freescale.com>
include/bouncebuf.h

index 31021c5b85e68149d9187730967e6b4d36d7790f..aa2278c8f94ad05355b1d29bbee1104459e9e064 100644 (file)
@@ -51,7 +51,6 @@
  */
 #define GEN_BB_RW      (GEN_BB_READ | GEN_BB_WRITE)
 
-#ifdef CONFIG_BOUNCE_BUFFER
 /**
  * bounce_buffer_start() -- Start the bounce buffer session
  * data:       pointer to buffer to be aligned
@@ -70,18 +69,5 @@ int bounce_buffer_start(void **data, size_t len, void **backup, uint8_t flags);
  * flags:      flags describing the transaction, see above.
  */
 int bounce_buffer_stop(void **data, size_t len, void **backup, uint8_t flags);
-#else
-static inline int bounce_buffer_start(void **data, size_t len, void **backup,
-                                       uint8_t flags)
-{
-       return 0;
-}
-
-static inline int bounce_buffer_stop(void **data, size_t len, void **backup,
-                                       uint8_t flags)
-{
-       return 0;
-}
-#endif
 
 #endif