Index: kernel/arch/ppc32/src/ppc32.c
===================================================================
--- kernel/arch/ppc32/src/ppc32.c	(revision 1dbc43f1c037ded959f69e4b6346df8bf12e2431)
+++ kernel/arch/ppc32/src/ppc32.c	(revision 2f87aa63a0c77d7621450b8fbf46571c5f6bb4db)
@@ -103,4 +103,5 @@
 }
 
+#ifdef CONFIG_FB
 static bool display_register(ofw_tree_node_t *node, void *arg)
 {
@@ -169,4 +170,5 @@
 	return true;
 }
+#endif
 
 void arch_post_mm_init(void)
