46efca75382b42ba7e0363b4e9fa6b57edbbcacf
[openwrt/staging/hauke.git] /
1 From b045189aef457833face5d7c4506e908289d2bfe Mon Sep 17 00:00:00 2001
2 From: Yunhui Cui <yunhui.cui@nxp.com>
3 Date: Thu, 18 Aug 2016 11:24:46 +0800
4 Subject: [PATCH 88/93] driver: spi: enable stm_get_locked_range() for
5 spansion flash
6
7 stm_get_locked_range() is also applicable for spansion flash, So we can
8 share it.
9
10 Signed-off-by: Yunhui Cui <yunhui.cui@nxp.com>
11 ---
12 drivers/mtd/spi/spi_flash.c | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15 diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
16 index 87a92e9..d69d2c3 100644
17 --- a/drivers/mtd/spi/spi_flash.c
18 +++ b/drivers/mtd/spi/spi_flash.c
19 @@ -702,7 +702,8 @@ int sst_write_bp(struct spi_flash *flash, u32 offset, size_t len,
20 }
21 #endif
22
23 -#if defined(CONFIG_SPI_FLASH_STMICRO) || defined(CONFIG_SPI_FLASH_SST)
24 +#if defined(CONFIG_SPI_FLASH_STMICRO) || defined(CONFIG_SPI_FLASH_SST) || \
25 + defined(CONFIG_SPI_FLASH_SPANSION)
26 static void stm_get_locked_range(struct spi_flash *flash, u8 sr, loff_t *ofs,
27 u32 *len)
28 {
29 --
30 1.7.9.5
31