From 2744a4e688851fc3b5e2937bf047100c85daeb43 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 23 Apr 2011 23:05:55 +0000 Subject: sf: unify write enable commands Every spi flash uses the same write enable command, so unify this in the common code. Signed-off-by: Mike Frysinger --- drivers/mtd/spi/macronix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/mtd/spi/macronix.c') diff --git a/drivers/mtd/spi/macronix.c b/drivers/mtd/spi/macronix.c index ff66f2a..8dacefe 100644 --- a/drivers/mtd/spi/macronix.c +++ b/drivers/mtd/spi/macronix.c @@ -147,7 +147,7 @@ static int macronix_write(struct spi_flash *flash, ("PP: 0x%p => cmd = { 0x%02x 0x%02x%02x%02x } chunk_len = %d\n", buf + actual, cmd[0], cmd[1], cmd[2], cmd[3], chunk_len); - ret = spi_flash_cmd(flash->spi, CMD_MX25XX_WREN, NULL, 0); + ret = spi_flash_cmd_write_enable(flash); if (ret < 0) { debug("SF: Enabling Write failed\n"); break; -- cgit v1.1