From: Chen Gong Date: Mon, 11 Aug 2008 08:59:14 +0000 (+0800) Subject: [MTD] m25p80.c code cleanup X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=75d0ee2202b5740e94e913d8a52f91c6557c4c81;p=deliverable%2Flinux.git [MTD] m25p80.c code cleanup code cleanup for m25p80.c Signed-off-by: Chen Gong Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 8fbd1b57f606..b2b58c1bb321 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); }