1
0
Fork 0

[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>
hifive-unleashed-5.1
Chen Gong 2008-08-11 16:59:14 +08:00 committed by David Woodhouse
parent faff37508a
commit 75d0ee2202
1 changed files with 1 additions and 1 deletions

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