Skip to content

Commit

Permalink
[MTD] m25p80.c code cleanup
Browse files Browse the repository at this point in the history
code cleanup for m25p80.c

Signed-off-by: Chen Gong <g.chen@freescale.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Chen Gong authored and David Woodhouse committed Aug 11, 2008
1 parent faff375 commit 75d0ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/devices/m25p80.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down

0 comments on commit 75d0ee2

Please sign in to comment.