aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/devices/m25p80.c
diff options
context:
space:
mode:
authorChen Gong <g.chen@freescale.com>2008-08-11 16:59:14 +0800
committerDavid Woodhouse <David.Woodhouse@intel.com>2008-08-11 17:32:43 +0100
commit75d0ee2202b5740e94e913d8a52f91c6557c4c81 (patch)
treeb1b084b0997333bc4aec5ef6aeda6d859abbf30d /drivers/mtd/devices/m25p80.c
parentfaff37508a104e9ec5285d5adecaab7e8dde472a (diff)
[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>
Diffstat (limited to 'drivers/mtd/devices/m25p80.c')
-rw-r--r--drivers/mtd/devices/m25p80.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 8fbd1b57f60..b2b58c1bb32 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);
}