[U-Boot] [PATCH] dm: core: Decouple DM from DT

Simon Glass sjg at chromium.org
Fri Sep 6 21:04:12 UTC 2019


On Sun, 1 Sep 2019 at 09:28, Marek Vasut <marek.vasut at gmail.com> wrote:
>
> Some of the DM functions depend on OF_CONTROL, which is incorrect.
> DM and DT are orthogonal. Add macro guards around such functions to
> avoid compiling them in when DM is enabled, while OF_CONTROL is not.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>  drivers/core/device.c | 4 ++++
>  drivers/core/root.c   | 8 +-------
>  drivers/core/util.c   | 2 ++
>  3 files changed, 7 insertions(+), 7 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list