diff options
author | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-08-28 14:57:03 +0530 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-10-07 17:55:48 +0530 |
commit | 532f2f111cdbcd11a422dfd3a53f63ac657df0bd (patch) | |
tree | b3ab3afeb3e77805f6f498752800830071a131e9 /drivers/mtd | |
parent | 3ea708f0d3cd0a13772f8fe86870d99925b0a868 (diff) | |
download | u-boot-imx-532f2f111cdbcd11a422dfd3a53f63ac657df0bd.zip u-boot-imx-532f2f111cdbcd11a422dfd3a53f63ac657df0bd.tar.gz u-boot-imx-532f2f111cdbcd11a422dfd3a53f63ac657df0bd.tar.bz2 |
sf: ops: Add static qualifier to spi_flash_cmd_bankaddr_write
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi/spi_flash_internal.h | 5 | ||||
-rw-r--r-- | drivers/mtd/spi/spi_flash_ops.c | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/mtd/spi/spi_flash_internal.h b/drivers/mtd/spi/spi_flash_internal.h index 86966f6..1f9f170 100644 --- a/drivers/mtd/spi/spi_flash_internal.h +++ b/drivers/mtd/spi/spi_flash_internal.h @@ -94,11 +94,6 @@ static inline int spi_flash_cmd_write_disable(struct spi_flash *flash) /* Program the status register. */ int spi_flash_cmd_write_status(struct spi_flash *flash, u8 sr); -#ifdef CONFIG_SPI_FLASH_BAR -/* Program the bank address register */ -int spi_flash_cmd_bankaddr_write(struct spi_flash *flash, u8 bank_sel); -#endif - /* * Same as spi_flash_cmd_read() except it also claims/releases the SPI * bus. Used as common part of the ->read() operation. diff --git a/drivers/mtd/spi/spi_flash_ops.c b/drivers/mtd/spi/spi_flash_ops.c index c408e27..b4e1c40 100644 --- a/drivers/mtd/spi/spi_flash_ops.c +++ b/drivers/mtd/spi/spi_flash_ops.c @@ -39,7 +39,7 @@ int spi_flash_cmd_write_status(struct spi_flash *flash, u8 sr) } #ifdef CONFIG_SPI_FLASH_BAR -int spi_flash_cmd_bankaddr_write(struct spi_flash *flash, u8 bank_sel) +static int spi_flash_cmd_bankaddr_write(struct spi_flash *flash, u8 bank_sel) { u8 cmd; int ret; |