]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Use device_type helpers to access the node type
authorRob Herring <robh@kernel.org>
Fri, 16 Nov 2018 22:11:00 +0000 (16:11 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 26 Nov 2018 11:33:37 +0000 (22:33 +1100)
commit03cf701d494ac63119d878734026646384a5afe6
tree2a788e3bd8b41b1d89a6ed7487e08ec84c2e2bc4
parent56ea636b6c008dfff136a4a8cc60e08ea4e2e7d9
powerpc: Use device_type helpers to access the node type

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

Replace the open coded iterating over child nodes with
for_each_child_of_node() while we're here.

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
18 files changed:
arch/powerpc/kernel/cacheinfo.c
arch/powerpc/kernel/isa-bridge.c
arch/powerpc/kernel/legacy_serial.c
arch/powerpc/kernel/pci_of_scan.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/mm/numa.c
arch/powerpc/platforms/4xx/pci.c
arch/powerpc/platforms/cell/cbe_regs.c
arch/powerpc/platforms/cell/setup.c
arch/powerpc/platforms/chrp/pci.c
arch/powerpc/platforms/chrp/setup.c
arch/powerpc/platforms/maple/pci.c
arch/powerpc/platforms/powermac/low_i2c.c
arch/powerpc/platforms/powermac/pic.c
arch/powerpc/platforms/powermac/udbg_adb.c
arch/powerpc/platforms/pseries/hotplug-memory.c
arch/powerpc/platforms/pseries/setup.c
arch/powerpc/platforms/pseries/vio.c