summaryrefslogtreecommitdiff
path: root/lib/fdtdec.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-12-21 16:08:18 -0700
committerSimon Glass <sjg@chromium.org>2023-01-18 11:49:13 -0700
commitc662d0b72272b183d66039c9337f7b58b56530ff (patch)
treeb8307003f651dde20e0364bb83ba94d297807cab /lib/fdtdec.c
parent0c16fca927751fbb9be6f026ec8534d289156d3c (diff)
downloadu-boot-c662d0b72272b183d66039c9337f7b58b56530ff.tar.gz
fdt: Avoid exporting fdtdec_prepare_fdt()
This function is not used outside this file. Make it static. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/fdtdec.c')
-rw-r--r--lib/fdtdec.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 64c5b3da15..6388bb8b89 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -586,24 +586,12 @@ int fdtdec_get_chosen_node(const void *blob, const char *name)
return fdt_path_offset(blob, prop);
}
-int fdtdec_check_fdt(void)
-{
- /*
- * We must have an FDT, but we cannot panic() yet since the console
- * is not ready. So for now, just assert(). Boards which need an early
- * FDT (prior to console ready) will need to make their own
- * arrangements and do their own checks.
- */
- assert(!fdtdec_prepare_fdt());
- return 0;
-}
-
/*
* This function is a little odd in that it accesses global data. At some
* point if the architecture board.c files merge this will make more sense.
* Even now, it is common code.
*/
-int fdtdec_prepare_fdt(void)
+static int fdtdec_prepare_fdt(void)
{
if (!gd->fdt_blob || ((uintptr_t)gd->fdt_blob & 3) ||
fdt_check_header(gd->fdt_blob)) {
@@ -625,6 +613,18 @@ int fdtdec_prepare_fdt(void)
return 0;
}
+int fdtdec_check_fdt(void)
+{
+ /*
+ * We must have an FDT, but we cannot panic() yet since the console
+ * is not ready. So for now, just assert(). Boards which need an early
+ * FDT (prior to console ready) will need to make their own
+ * arrangements and do their own checks.
+ */
+ assert(!fdtdec_prepare_fdt());
+ return 0;
+}
+
int fdtdec_lookup_phandle(const void *blob, int node, const char *prop_name)
{
const u32 *phandle;