summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2020-07-12 23:29:01 +0530
committerStefan Roese <sr@denx.de>2020-08-06 14:12:14 +0200
commit7a7f3219a7fb0be5e63df78ee360d9e5466cd908 (patch)
treeee58ac3d897b3bffaa743cf7176270e0a612eb77 /cmd
parent89150a9314bd432ed8cca9a03034435346fb0b16 (diff)
cmd: mvebu/bubt: Drop unused SPI_FLASH_PROTECTION
SPI_FLASH_PROTECTION config item is never used in anywhere in the U-Boot tree. Drop it. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mvebu/bubt.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c
index a27b0df8ae..b3b5844267 100644
--- a/cmd/mvebu/bubt.c
+++ b/cmd/mvebu/bubt.c
@@ -299,9 +299,6 @@ static int spi_burn_image(size_t image_size)
return -ENOMEDIUM;
}
-#ifdef CONFIG_SPI_FLASH_PROTECTION
- spi_flash_protect(flash, 0);
-#endif
erase_bytes = image_size +
(flash->erase_size - image_size % flash->erase_size);
printf("Erasing %d bytes (%d blocks) at offset 0 ...",
@@ -320,10 +317,6 @@ static int spi_burn_image(size_t image_size)
else
printf("Done!\n");
-#ifdef CONFIG_SPI_FLASH_PROTECTION
- spi_flash_protect(flash, 1);
-#endif
-
return ret;
}