diff mbox series

[U-Boot] MTD: NAND: mxs_nand_init_dma: Make mxs_nand_init_dma static

Message ID 20190112122548.11293-1-aford173@gmail.com
State Accepted
Commit 5645df9e00a01407730dc11d3a2bc4969203dc8c
Delegated to: Stefano Babic
Headers show
Series [U-Boot] MTD: NAND: mxs_nand_init_dma: Make mxs_nand_init_dma static | expand

Commit Message

Adam Ford Jan. 12, 2019, 12:25 p.m. UTC
mxs_nand_init_dma is only referenced from mxs_nand.c.  It's not
referenced in any headers or outside code, so this patch
defines it as static.

Signed-off-by: Adam Ford <aford173@gmail.com>

Comments

Stefano Babic Feb. 16, 2019, 10:26 a.m. UTC | #1
> mxs_nand_init_dma is only referenced from mxs_nand.c.  It's not
> referenced in any headers or outside code, so this patch
> defines it as static.
> Signed-off-by: Adam Ford <aford173@gmail.com>
> diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c
> index e3341812a2..82bd03868a 100644
> --- a/drivers/mtd/nand/raw/mxs_nand.c
> +++ b/drivers/mtd/nand/raw/mxs_nand.c
> @@ -1092,7 +1092,7 @@ int mxs_nand_alloc_buffers(struct mxs_nand_info *nand_info)
>  /*
>   * Initializes the NFC hardware.
>   */
> -int mxs_nand_init_dma(struct mxs_nand_info *info)
> +static int mxs_nand_init_dma(struct mxs_nand_info *info)
>  {
>  	int i = 0, j, ret = 0;
>  

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c
index e3341812a2..82bd03868a 100644
--- a/drivers/mtd/nand/raw/mxs_nand.c
+++ b/drivers/mtd/nand/raw/mxs_nand.c
@@ -1092,7 +1092,7 @@  int mxs_nand_alloc_buffers(struct mxs_nand_info *nand_info)
 /*
  * Initializes the NFC hardware.
  */
-int mxs_nand_init_dma(struct mxs_nand_info *info)
+static int mxs_nand_init_dma(struct mxs_nand_info *info)
 {
 	int i = 0, j, ret = 0;