]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc: Rework btext_find_display to use of_stdout and device_type helpers
authorRob Herring <robh@kernel.org>
Fri, 16 Nov 2018 22:10:59 +0000 (16:10 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Nov 2018 11:33:37 +0000 (22:33 +1100)
commit5b8d6be7b8dd286bd654e37d637ded139eae5dd4
tree9238ccbe829f3c6ac3304ec374cee002328db0b5
parent721c01ba8b46ddb5355bd6e6b3bbfdabfdf01e97
powerpc: Rework btext_find_display to use of_stdout and device_type helpers

Remove directly accessing device_node.type pointer and use the
accessors instead. This will eventually allow removing the type
pointer.

In the process, the of_stdout pointer can be used instead of finding
the stdout node again.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/btext.c