[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>
This commit is contained in:
Chen Gong 2008-08-11 16:59:14 +08:00 committed by David Woodhouse
parent faff37508a
commit 75d0ee2202

View 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);
}