]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: mvebu/bubt: Drop unused SPI_FLASH_PROTECTION
authorJagan Teki <jagan@amarulasolutions.com>
Sun, 12 Jul 2020 17:59:01 +0000 (23:29 +0530)
committerStefan Roese <sr@denx.de>
Thu, 6 Aug 2020 12:12:14 +0000 (14:12 +0200)
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>
cmd/mvebu/bubt.c

index a27b0df8ae78ed59d317fab9137d7050be8dd4a6..b3b58442674614d491419e6e9d5146605c16e366 100644 (file)
@@ -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;
 }