Updates the "debug" logic in the cppi_dma.c file to use the standard musb
dma routines.

Signed-off-by: Swaminathan S <[EMAIL PROTECTED]>
---
 drivers/usb/musb/cppi_dma.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c
index 5ad6d08..c50cc74 100644
--- a/drivers/usb/musb/cppi_dma.c
+++ b/drivers/usb/musb/cppi_dma.c
@@ -10,7 +10,7 @@
 
 #include "musb_core.h"
 #include "cppi_dma.h"
-
+#include "musb_debug.h"
 
 /* CPPI DMA status 7-mar-2006:
  *
@@ -434,7 +434,6 @@ static void cppi_dump_rxbd(const char *tag, struct 
cppi_descriptor *bd)
 
 static void cppi_dump_rxq(int level, const char *tag, struct cppi_channel *rx)
 {
-#if MUSB_DEBUG > 0
        struct cppi_descriptor  *bd;
 
        if (!_dbg_level(level))
@@ -444,7 +443,6 @@ static void cppi_dump_rxq(int level, const char *tag, 
struct cppi_channel *rx)
                cppi_dump_rxbd("last", rx->last_processed);
        for (bd = rx->head; bd; bd = bd->next)
                cppi_dump_rxbd("active", bd);
-#endif
 }
 
 
@@ -881,7 +879,7 @@ cppi_next_rx_segment(struct musb *musb, struct cppi_channel 
*rx, int onepacket)
        bd->hw_options |= CPPI_SOP_SET;
        tail->hw_options |= CPPI_EOP_SET;
 
-       if (debug >= 5) {
+       if (_dbg_level(5)) {
                struct cppi_descriptor  *d;
 
                for (d = rx->head; d; d = d->next)
-- 
1.6.0.rc1.64.g61192

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to