fdt: Don't call board_fdt_blob_setup() without OF_BOARD
authorSimon Glass <sjg@chromium.org>
Fri, 17 Dec 2021 03:59:31 +0000 (20:59 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 23 Dec 2021 15:24:40 +0000 (10:24 -0500)
commit985503439762c3168aeb80f529bb9bbcd773dd2c
treef3f235f227689bf3c6260a6af3d5a930b6941966
parentba83d8593bde7aec6055ea5fe200b8db6f1b0810
fdt: Don't call board_fdt_blob_setup() without OF_BOARD

At present this override function is called even when OF_BOARD is not
enabled. This makes it impossible to disable this feature and in fact
makes the OF_BOARD option useless.

Reinstate its intended purpose, so that it is possible to switch between
the appended devicetree and one provided by the board's custom function.

A follower patch adds warnings for this scenario, but for now we don't
have a Kconfig that definitively tells us that OF_BOARD should be used.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/fdtdec.h
lib/fdtdec.c