Signed-off-by: Alexander Shiyan <eagle.alexander923@xxxxxxxxx> --- arch/arm/cpu/dtb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/cpu/dtb.c b/arch/arm/cpu/dtb.c index 9aa979ca08..e84d317661 100644 --- a/arch/arm/cpu/dtb.c +++ b/arch/arm/cpu/dtb.c @@ -18,14 +18,13 @@ static int of_arm_init(void) /* See if we are provided a dtb in boarddata */ fdt = barebox_arm_boot_dtb(); - if (fdt) - pr_debug("using boarddata provided DTB\n"); - if (!fdt) { pr_debug("No DTB found\n"); return 0; } + pr_debug("using boarddata provided DTB\n"); + return barebox_register_fdt(fdt); } core_initcall(of_arm_init); -- 2.38.2