Skip to content

Commit

Permalink
MIPS: Remove obsolete MIPS checks for DST node "chosen@0"
Browse files Browse the repository at this point in the history
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.

[[email protected]:
  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 <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/20131/
Cc: [email protected]
  • Loading branch information
rpjday authored and paulburton committed Aug 6, 2018
1 parent ca75e2f commit 7dc084d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/mips/generic/yamon-dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 7dc084d

Please sign in to comment.