board: ls1088a: fix fsl-mc search path
authorMian Yousaf Kaukab <ykaukab@suse.de>
Tue, 29 Jan 2019 15:38:31 +0000 (16:38 +0100)
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Sun, 3 Mar 2019 15:26:00 +0000 (20:56 +0530)
Path for fsl-mc node in kernel device-tree is /soc/fsl-mc whereas
in u-boot it is /fsl-mc.

Fix the incorrect search path to fix following error:
fdt_fixup_board_enet: ERROR: fsl-mc node not found in device tree
(error -1)

Signed-off-by: Mian Yousaf Kaukab <ykaukab@suse.de>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
board/freescale/ls1088a/ls1088a.c

index 59eed5b369227677f83d92011216ae8168d8091c..6d11a134dc9dd863889b81488976045a38ea1dee 100644 (file)
@@ -655,7 +655,7 @@ void fdt_fixup_board_enet(void *fdt)
        offset = fdt_path_offset(fdt, "/fsl-mc");
 
        if (offset < 0)
-               offset = fdt_path_offset(fdt, "/fsl,dprc@0");
+               offset = fdt_path_offset(fdt, "/soc/fsl-mc");
 
        if (offset < 0) {
                printf("%s: ERROR: fsl-mc node not found in device tree (error %d)\n",