[MTD] m25p80.c code cleanup
authorChen Gong <g.chen@freescale.com>
Mon, 11 Aug 2008 08:59:14 +0000 (16:59 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 11 Aug 2008 16:32:43 +0000 (17:32 +0100)
code cleanup for m25p80.c

Signed-off-by: Chen Gong <g.chen@freescale.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/devices/m25p80.c

index 8fbd1b57f60658370dbb6235e082c15189f4bb45..b2b58c1bb321b97a73e613263e28495bd749bbb2 100644 (file)
@@ -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);
 }