mtd: docg3: fix tracing of IO in writeb

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Jan 9 13:59:02 EST 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=84a930581ef45e81cff0450b19ce5a70f24d50bb
Commit:     84a930581ef45e81cff0450b19ce5a70f24d50bb
Parent:     ac48e800c077738f18d3789d5eb8958bf52cf2d7
Author:     Robert Jarzmik <robert.jarzmik at free.fr>
AuthorDate: Sat Nov 19 16:02:44 2011 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Jan 9 18:07:13 2012 +0000

    mtd: docg3: fix tracing of IO in writeb
    
    Writeb was incorrectly traced as a 16 bits write, instead of
    a 8 bits write. Fix it by tracing the correct width.
    
    Signed-off-by: Robert Jarzmik <robert.jarzmik at free.fr>
    Reviewed-by: Ivan Djelic <ivan.djelic at parrot.com>
    Reviewed-by: Mike Dunn <mikedunn at newsguy.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/devices/docg3.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/devices/docg3.c b/drivers/mtd/devices/docg3.c
index 6f5233d..8942a75 100644
--- a/drivers/mtd/devices/docg3.c
+++ b/drivers/mtd/devices/docg3.c
@@ -82,7 +82,7 @@ static inline u16 doc_readw(struct docg3 *docg3, u16 reg)
 static inline void doc_writeb(struct docg3 *docg3, u8 val, u16 reg)
 {
 	writeb(val, docg3->base + reg);
-	trace_docg3_io(1, 16, reg, val);
+	trace_docg3_io(1, 8, reg, val);
 }
 
 static inline void doc_writew(struct docg3 *docg3, u16 val, u16 reg)



More information about the linux-mtd-cvs mailing list