]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynq: nand: Add static qualifiers
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
Tue, 5 Mar 2013 14:05:00 +0000 (19:35 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 5 Mar 2013 16:39:16 +0000 (17:39 +0100)
Added few static qualifiers to missing symbols.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
drivers/mtd/nand/zynq_nand.c

index b801a43459a11b2a204596d337f128a3b3c12d00..f3d79835c52597ff1de8e7848b9c947134c99b7f 100644 (file)
@@ -300,7 +300,7 @@ static int xnandps_calculate_hwecc(struct mtd_info *mtd, const u8 *data,
  * onehot is if and only if onebit is set.
  *
  */
-int onehot(unsigned short value)
+static int onehot(unsigned short value)
 {
        return ((value & (value-1)) == 0);
 }
@@ -318,7 +318,7 @@ int onehot(unsigned short value)
  *             1 if single bit error found and corrected.
  *             -1 if multiple ECC errors found.
  */
-int xnandps_correct_data(struct mtd_info *mtd, unsigned char *buf,
+static int xnandps_correct_data(struct mtd_info *mtd, unsigned char *buf,
                        unsigned char *read_ecc, unsigned char *calc_ecc)
 {
        unsigned char bit_addr;
@@ -501,7 +501,7 @@ static void xnandps_write_page_raw(struct mtd_info *mtd,
  *
  * This functions writes data and hardware generated ECC values in to the page.
  */
-void xnandps_write_page_hwecc(struct mtd_info *mtd,
+static void xnandps_write_page_hwecc(struct mtd_info *mtd,
                                struct nand_chip *chip, const uint8_t *buf)
 {
        int i, eccsize = chip->ecc.size;
@@ -589,7 +589,7 @@ static void xnandps_write_page_swecc(struct mtd_info *mtd,
  *
  * returns:    0 always and updates ECC operation status in to MTD structure
  */
-int xnandps_read_page_hwecc(struct mtd_info *mtd,
+static int xnandps_read_page_hwecc(struct mtd_info *mtd,
                                struct nand_chip *chip, uint8_t *buf, int page)
 {
        int i, stat, eccsize = chip->ecc.size;