summaryrefslogtreecommitdiff
path: root/board/freescale/imx8mm_evk/spl.c
diff options
context:
space:
mode:
authorAlifer Moraes <alifer.wsdm@gmail.com>2020-01-14 21:55:00 +0300
committerStefano Babic <sbabic@denx.de>2020-01-20 17:38:16 +0300
commit62cdfdcc81dc0af1ebabbf589ddb1ecc36351a47 (patch)
tree13664f329b9670ce7b97b47b84f1a9594beb7223 /board/freescale/imx8mm_evk/spl.c
parentc27483fcb0b525df45f33160300dda1149a6c69a (diff)
downloadu-boot-62cdfdcc81dc0af1ebabbf589ddb1ecc36351a47.tar.xz
mx8mm_evk: spl: Staticize functions
Functions spl_dram_init() and power_init_board() are used only in the scope of this file, so make them static to fix the following sparse warnings: board/freescale/imx8mm_evk/spl.c:40:6: warning: no previous prototype for ‘spl_dram_init’ [-Wmissing-prototypes] board/freescale/imx8mm_evk/spl.c:85:5: warning: no previous prototype for ‘power_init_board’ [-Wmissing-prototypes] Signed-off-by: Alifer Moraes <alifer.wsdm@gmail.com>
Diffstat (limited to 'board/freescale/imx8mm_evk/spl.c')
-rw-r--r--board/freescale/imx8mm_evk/spl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c
index 2d08f9a563..e28f795676 100644
--- a/board/freescale/imx8mm_evk/spl.c
+++ b/board/freescale/imx8mm_evk/spl.c
@@ -37,7 +37,7 @@ int spl_board_boot_device(enum boot_device boot_dev_spl)
}
}
-void spl_dram_init(void)
+static void spl_dram_init(void)
{
ddr_init(&dram_timing);
}
@@ -82,7 +82,7 @@ int board_early_init_f(void)
return 0;
}
-int power_init_board(void)
+static int power_init_board(void)
{
struct udevice *dev;
int ret;