Re: is there still any need PPC checking for "chosen@0"?

2018-08-08 Thread Michael Ellerman
"Robert P. J. Day" writes: > given that there are no .dts files in the current kernel code base > that define the node name "/chosen@0" instead of the proper "/chosen", A good portion of PPC machines get their device tree from firmware, not from a dts that's in the kernel tree, so that's not a

is there still any need PPC checking for "chosen@0"?

2018-08-06 Thread Robert P. J. Day
given that there are no .dts files in the current kernel code base that define the node name "/chosen@0" instead of the proper "/chosen", is there any need for arch/powerpc/boot/oflib.c to still make this test: chosen = of_finddevice("/chosen"); if (chosen == (phandle) -1) {