]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mtd/devices/m25p80.c
Revert "[MTD] m25p80.c code cleanup"
[linux-2.6-omap-h63xx.git] / drivers / mtd / devices / m25p80.c
index 697a3a217837df166585ce1c7a6e9fb69a3655e4..76a76751da3660ce63123844d97eca891d2cbab2 100644 (file)
@@ -134,7 +134,7 @@ static inline int write_enable(struct m25p *flash)
 {
        u8      code = OPCODE_WREN;
 
-       return spi_write(flash->spi, &code, 1);
+       return spi_write_then_read(flash->spi, &code, 1, NULL, 0);
 }