Skip to content

Commit 75d0ee2

Browse files
Chen GongDavid Woodhouse
authored andcommitted
[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>
1 parent faff375 commit 75d0ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/devices/m25p80.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static inline int write_enable(struct m25p *flash)
134134
{
135135
u8 code = OPCODE_WREN;
136136

137-
return spi_write_then_read(flash->spi, &code, 1, NULL, 0);
137+
return spi_write(flash->spi, &code, 1);
138138
}
139139

140140

0 commit comments

Comments
 (0)