[MTD] m25p80.c code cleanup

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Aug 11 12:59:02 EDT 2008


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=75d0ee2202b5740e94e913d8a52f91c6557c4c81
Commit:     75d0ee2202b5740e94e913d8a52f91c6557c4c81
Parent:     faff37508a104e9ec5285d5adecaab7e8dde472a
Author:     Chen Gong <g.chen at freescale.com>
AuthorDate: Mon Aug 11 16:59:14 2008 +0800
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 11 17:32:43 2008 +0100

    [MTD] m25p80.c code cleanup
    
    code cleanup for m25p80.c
    
    Signed-off-by: Chen Gong <g.chen at freescale.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/devices/m25p80.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 8fbd1b5..b2b58c1 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -134,7 +134,7 @@ static inline int write_enable(struct m25p *flash)
 {
 	u8	code = OPCODE_WREN;
 
-	return spi_write_then_read(flash->spi, &code, 1, NULL, 0);
+	return spi_write(flash->spi, &code, 1);
 }
 
 



More information about the linux-mtd-cvs mailing list