dm: core: Fix dm_extended_scan_fdt()
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 15 May 2019 08:07:01 +0000 (10:07 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 21 May 2019 23:33:23 +0000 (17:33 -0600)
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 <takahiro.akashi@linaro.org>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/root.c

index 8fa0966..aa5ca40 100644 (file)
@@ -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;