From: Patrice Chotard Date: Wed, 15 May 2019 08:07:01 +0000 (+0200) Subject: dm: core: Fix dm_extended_scan_fdt() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=ee730a7cd2afe445e53e92b5c37396a5b118f7af;p=u-boot.git dm: core: Fix dm_extended_scan_fdt() This function takes an argument, blob, but never uses it, instead uses gd->fdt_blob directly. Fixes: e81c98649b7a ("dm: core: add clocks node scan") Reported-by: AKASHI Takahiro Signed-off-by: Patrice Chotard Reviewed-by: Bin Meng --- diff --git a/drivers/core/root.c b/drivers/core/root.c index 8fa096648e..aa5ca4087a 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -342,7 +342,7 @@ int dm_extended_scan_fdt(const void *blob, bool pre_reloc_only) { int ret; - ret = dm_scan_fdt(gd->fdt_blob, pre_reloc_only); + ret = dm_scan_fdt(blob, pre_reloc_only); if (ret) { debug("dm_scan_fdt() failed: %d\n", ret); return ret;