From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jagan Teki Date: Thu, 31 Dec 2015 14:52:00 +0530 Subject: [U-Boot] [PATCH v3 05/10] sf: Remove SECT_32K In-Reply-To: <1451553724-1098-1-git-send-email-jteki@openedev.com> References: <1451553724-1098-1-git-send-email-jteki@openedev.com> Message-ID: <1451553724-1098-6-git-send-email-jteki@openedev.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de None of the flash part is using SECT_32K in spi_flash_ids hence removed the same. Cc: Simon Glass Cc: Bin Meng Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Tested-by: Mugunthan V N Tested-by: Jagan Teki Signed-off-by: Jagan Teki --- drivers/mtd/spi/spi_flash.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 86f7998..63c53c2 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -1382,9 +1382,6 @@ int spi_flash_scan(struct spi_flash *flash) if (info->flags & SECT_4K) { flash->erase_cmd = CMD_ERASE_4K; flash->erase_size = 4096 << flash->shift; - } else if (info->flags & SECT_32K) { - flash->erase_cmd = CMD_ERASE_32K; - flash->erase_size = 32768 << flash->shift; } else { flash->erase_cmd = CMD_ERASE_64K; flash->erase_size = flash->sector_size; -- 1.9.1