]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mtd/spi/ramtron.c
sf: unify write enable commands
[karo-tx-uboot.git] / drivers / mtd / spi / ramtron.c
index 078d16ce1bc6d5ec15ec1b15373c575ae51e2ac9..27d4039aadef64a0f0a2ab2f06774fe30a6caefc 100644 (file)
@@ -198,7 +198,7 @@ static int ramtron_common(struct spi_flash *flash,
 
        if (command == CMD_RAMTRON_WRITE) {
                /* send WREN */
-               ret = spi_flash_cmd(flash->spi, CMD_RAMTRON_WREN, NULL, 0);
+               ret = spi_flash_cmd_write_enable(flash);
                if (ret < 0) {
                        debug("SF: Enabling Write failed\n");
                        goto releasebus;