[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:
parent
faff37508a
commit
75d0ee2202
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue