aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/ramtron.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/spi/ramtron.c')
-rw-r--r--drivers/mtd/spi/ramtron.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/ramtron.c b/drivers/mtd/spi/ramtron.c
index 078d16ce1bc..27d4039aade 100644
--- a/drivers/mtd/spi/ramtron.c
+++ b/drivers/mtd/spi/ramtron.c
@@ -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;