MIPS: Remove obsolete MIPS checks for DST node "chosen@0"
authorRobert P. J. Day <rpjday@crashcourse.ca>
Mon, 6 Aug 2018 16:26:48 +0000 (12:26 -0400)
committerPaul Burton <paul.burton@mips.com>
Mon, 6 Aug 2018 16:50:33 +0000 (09:50 -0700)
As there is precious little left in any DTS files referring to the
node "/chosen@0" as opposed to "/chosen", remove the two checks for
the former node name.

[paul.burton@mips.com:
  The modified yamon-dt code only operates on
  arch/mips/boot/dts/mti/sead3.dts right now, and that uses chosen
  rather than chosen@0 anyway, so this should have no behavioural
  effect.]

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/20131/
Cc: linux-mips@linux-mips.org
arch/mips/generic/yamon-dt.c

index b408dac722ac7fd7345fd0bf2e1e00f9b7dbd110..7ba4ad5cc1d668003f5824fa00746803a5a50524 100644 (file)
@@ -27,8 +27,6 @@ __init int yamon_dt_append_cmdline(void *fdt)
 
        /* find or add chosen node */
        chosen_off = fdt_path_offset(fdt, "/chosen");
-       if (chosen_off == -FDT_ERR_NOTFOUND)
-               chosen_off = fdt_path_offset(fdt, "/chosen@0");
        if (chosen_off == -FDT_ERR_NOTFOUND)
                chosen_off = fdt_add_subnode(fdt, 0, "chosen");
        if (chosen_off < 0) {
@@ -220,8 +218,6 @@ __init int yamon_dt_serial_config(void *fdt)
 
        /* find or add chosen node */
        chosen_off = fdt_path_offset(fdt, "/chosen");
-       if (chosen_off == -FDT_ERR_NOTFOUND)
-               chosen_off = fdt_path_offset(fdt, "/chosen@0");
        if (chosen_off == -FDT_ERR_NOTFOUND)
                chosen_off = fdt_add_subnode(fdt, 0, "chosen");
        if (chosen_off < 0) {