Skip to content

Commit 7dc084d

Browse files
robertpjdaypaulburton
authored andcommitted
MIPS: Remove obsolete MIPS checks for DST node "chosen@0"
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
1 parent ca75e2f commit 7dc084d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎arch/mips/generic/yamon-dt.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ __init int yamon_dt_append_cmdline(void *fdt)
2727

2828
/* find or add chosen node */
2929
chosen_off = fdt_path_offset(fdt, "/chosen");
30-
if (chosen_off == -FDT_ERR_NOTFOUND)
31-
chosen_off = fdt_path_offset(fdt, "/chosen@0");
3230
if (chosen_off == -FDT_ERR_NOTFOUND)
3331
chosen_off = fdt_add_subnode(fdt, 0, "chosen");
3432
if (chosen_off < 0) {
@@ -220,8 +218,6 @@ __init int yamon_dt_serial_config(void *fdt)
220218

221219
/* find or add chosen node */
222220
chosen_off = fdt_path_offset(fdt, "/chosen");
223-
if (chosen_off == -FDT_ERR_NOTFOUND)
224-
chosen_off = fdt_path_offset(fdt, "/chosen@0");
225221
if (chosen_off == -FDT_ERR_NOTFOUND)
226222
chosen_off = fdt_add_subnode(fdt, 0, "chosen");
227223
if (chosen_off < 0) {

0 commit comments

Comments
 (0)