diff options
author | Jagan Teki <jteki@openedev.com> | 2015-12-13 23:10:33 +0530 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2016-01-13 18:47:26 +0530 |
commit | 6f3096585b6b61c115074a7e959cbe6f74d8e45d (patch) | |
tree | 11f49cd2cf632ff238c09364b5ef65743182d90f /drivers | |
parent | 9275929c24c14339e5bd231ae914998785bd6bf3 (diff) | |
download | u-boot-imx-6f3096585b6b61c115074a7e959cbe6f74d8e45d.zip u-boot-imx-6f3096585b6b61c115074a7e959cbe6f74d8e45d.tar.gz u-boot-imx-6f3096585b6b61c115074a7e959cbe6f74d8e45d.tar.bz2 |
sf: Rename bank_end to bar_end in read_bar
bar_end gives more meaningfull compared to bank_end and
spi_flash_write_bar uses bar_end so replaced bank_end with
bar_end in spi_flash_read_bar
Signed-off-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/spi/spi_flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 8601a43..e4b8ce9 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -139,7 +139,7 @@ static int spi_flash_read_bar(struct spi_flash *flash, u8 idcode0) int ret; if (flash->size <= SPI_FLASH_16MB_BOUN) - goto bank_end; + goto bar_end; switch (idcode0) { case SPI_FLASH_CFI_MFR_SPANSION: @@ -158,7 +158,7 @@ static int spi_flash_read_bar(struct spi_flash *flash, u8 idcode0) return ret; } -bank_end: +bar_end: flash->bank_curr = curr_bank; return 0; } |