]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dmaengine: pxa_dma: fix debug information
authorRobert Jarzmik <robert.jarzmik@free.fr>
Tue, 18 Aug 2015 06:15:32 +0000 (08:15 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 18 Aug 2015 16:40:09 +0000 (22:10 +0530)
This fixes the following error:
drivers/dma/pxa_dma.c: In function ‘dbg_show_requester_chan’:
drivers/dma/pxa_dma.c:192:2: error: void value not ignored as it ought to be
  pos += seq_printf(s, "DMA channel %d requester :\n", phy->idx);
  ^
drivers/dma/pxa_dma.c:197:8: error: void value not ignored as it ought to be
        !!(drcmr & DRCMR_MAPVLD));
        ^
scripts/Makefile.build:258: recipe for target 'drivers/dma/pxa_dma.o' failed

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pxa_dma.c

index 11290b83997575266f2a4c7ed378bfadc33a8631..5cb61ce01036fef2dc5248d11f99859e2dcb9d86 100644 (file)
@@ -184,19 +184,18 @@ static unsigned int pxad_drcmr(unsigned int line)
 
 static int dbg_show_requester_chan(struct seq_file *s, void *p)
 {
-       int pos = 0;
        struct pxad_phy *phy = s->private;
        int i;
        u32 drcmr;
 
-       pos += seq_printf(s, "DMA channel %d requester :\n", phy->idx);
+       seq_printf(s, "DMA channel %d requester :\n", phy->idx);
        for (i = 0; i < 70; i++) {
                drcmr = readl_relaxed(phy->base + pxad_drcmr(i));
                if ((drcmr & DRCMR_CHLNUM) == phy->idx)
-                       pos += seq_printf(s, "\tRequester %d (MAPVLD=%d)\n", i,
-                                         !!(drcmr & DRCMR_MAPVLD));
+                       seq_printf(s, "\tRequester %d (MAPVLD=%d)\n", i,
+                                  !!(drcmr & DRCMR_MAPVLD));
        }
-       return pos;
+       return 0;
 }
 
 static inline int dbg_burst_from_dcmd(u32 dcmd)