nand: davinci: make davinci_nand_init() static
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 29 Jul 2019 06:58:02 +0000 (08:58 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jul 2019 21:58:52 +0000 (17:58 -0400)
This function is only used within the driver itself. No need
to export it.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
arch/arm/include/asm/ti-common/davinci_nand.h
drivers/mtd/nand/raw/davinci_nand.c

index e26381c7fdd31a9fad32fce752ae85015ab06021..28842c3b1552811d7fdd561ed5b82c618ca10898 100644 (file)
@@ -95,6 +95,4 @@ struct davinci_emif_regs {
 #define DAVINCI_ABCR_ASIZE_16BIT                       1
 #define DAVINCI_ABCR_ASIZE_8BIT                                0
 
-void davinci_nand_init(struct nand_chip *nand);
-
 #endif
index cfa9b535c8a2f8456c31c47e637757604e7042f5..e1c4498cb90b36f47254e64d91da0d8bf664e3f2 100644 (file)
@@ -730,7 +730,7 @@ static int nand_davinci_dev_ready(struct mtd_info *mtd)
        return __raw_readl(&davinci_emif_regs->nandfsr) & 0x1;
 }
 
-void davinci_nand_init(struct nand_chip *nand)
+static void davinci_nand_init(struct nand_chip *nand)
 {
 #if defined CONFIG_KEYSTONE_RBL_NAND
        int i;