]> git.sur5r.net Git - u-boot/commitdiff
sf: ops: Add static qualifier to spi_flash_cmd_bankaddr_write
authorJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Wed, 28 Aug 2013 09:27:03 +0000 (14:57 +0530)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Mon, 7 Oct 2013 12:25:48 +0000 (17:55 +0530)
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/mtd/spi/spi_flash_internal.h
drivers/mtd/spi/spi_flash_ops.c

index 86966f61e9c64f3d3e7d0f745f47ab74f5d1780e..1f9f1700ad42d7c6bfa90fbc044d5e524d3c1203 100644 (file)
@@ -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.
index c408e27b61081c9bfdcb78268bf788d1a15f8cb6..b4e1c40fc91b1437e2dc9116282a61f89285859b 100644 (file)
@@ -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;