[U-Boot] [PATCH v1 2/9] mtd: nand: mxs_nand: use more precise function name

Stefan Agner stefan at agner.ch
Fri Apr 20 15:53:07 UTC 2018


From: Stefan Agner <stefan.agner at toradex.com>

This function initializes DMA descriptors so mxs_nand_init_dma is
more precise. It also frees up the rather generic name mxs_nand_init.

Signed-off-by: Stefan Agner <stefan.agner at toradex.com>
---

 drivers/mtd/nand/mxs_nand.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c
index f619a2f139..3f97da5e8f 100644
--- a/drivers/mtd/nand/mxs_nand.c
+++ b/drivers/mtd/nand/mxs_nand.c
@@ -1136,7 +1136,7 @@ int mxs_nand_alloc_buffers(struct mxs_nand_info *nand_info)
 /*
  * Initializes the NFC hardware.
  */
-int mxs_nand_init(struct mxs_nand_info *info)
+int mxs_nand_init_dma(struct mxs_nand_info *info)
 {
 	int i = 0, j, ret = 0;
 
@@ -1215,7 +1215,7 @@ void board_nand_init(void)
 	if (err)
 		goto err1;
 
-	err = mxs_nand_init(nand_info);
+	err = mxs_nand_init_dma(nand_info);
 	if (err)
 		goto err2;
 
-- 
2.17.0



More information about the U-Boot mailing list