Browse Source

[MTD] m25p80.c code cleanup

code cleanup for m25p80.c

Signed-off-by: Chen Gong <g.chen@freescale.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Chen Gong 17 years ago
parent
commit
75d0ee2202
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/mtd/devices/m25p80.c

+ 1 - 1
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);
 }