linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* is there still any need PPC checking for "chosen@0"?
@ 2018-08-06 16:37 Robert P. J. Day
  2018-08-08 13:58 ` Michael Ellerman
  0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2018-08-06 16:37 UTC (permalink / raw)
  To: Linux PPC Mailing List


  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) {
                chosen = of_finddevice("/chosen@0");   <--- this
                if (chosen == (phandle) -1) {
                        printf("no chosen\n");
                        return 0;
                }
        }

are there still PPC machines that require the recognition of
"/chosen@0"?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-08 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-06 16:37 is there still any need PPC checking for "chosen@0"? Robert P. J. Day
2018-08-08 13:58 ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).