]> git.sur5r.net Git - u-boot/commitdiff
sf: ops: Fix missing break on spansion read_bar
authorJagan Teki <jteki@openedev.com>
Fri, 20 Nov 2015 07:30:15 +0000 (13:00 +0530)
committerJagan Teki <jteki@openedev.com>
Fri, 11 Dec 2015 16:42:24 +0000 (22:12 +0530)
For assigning read_bar commands in spansion case, break
is missing this patch add that break.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jagan Teki <jteki@openedev.com>
drivers/mtd/spi/sf_ops.c

index ef45fc1a7b46ba4d743bee8786564916fe18789b..68f191b55e6d684f3df25fb804c4edbb1b934290 100644 (file)
@@ -154,6 +154,7 @@ static int spi_flash_read_bar(struct spi_flash *flash, u8 idcode0)
        case SPI_FLASH_CFI_MFR_SPANSION:
                flash->bank_read_cmd = CMD_BANKADDR_BRRD;
                flash->bank_write_cmd = CMD_BANKADDR_BRWR;
+               break;
        default:
                flash->bank_read_cmd = CMD_EXTNADDR_RDEAR;
                flash->bank_write_cmd = CMD_EXTNADDR_WREAR;