]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - drivers/mtd/spi/macronix.c
sf: unify write enable commands
[people/ms/u-boot.git] / drivers / mtd / spi / macronix.c
index ff66f2aa35c03a522d91094b6d047b40ced13976..8dacefecb5d3ed3a49b5683a79f3521ee0c24df9 100644 (file)
@@ -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;