[PATCH 2/3] [MTD] m25p80.c code cleanup

Chen Gong g.chen at freescale.com
Fri Jun 20 07:04:41 EDT 2008


Signed-off-by: Chen Gong <g.chen at freescale.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 9632247..aae0d80 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -122,7 +122,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);
 }
 
 
-- 
1.5.4




More information about the linux-mtd mailing list