]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: Move pci_device_from_OF_node() out of asm/pci-bridge.h
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 8 Mar 2022 19:20:20 +0000 (20:20 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 5 May 2022 14:00:20 +0000 (00:00 +1000)
commit85985b64b48e68c65f4957adbd16e876146827f1
tree44eb6ac0346ca091e0895ed00da7e4e060ce2ad0
parent88a3bc108a0c7fbc5841de78f4335a9bad9aad95
powerpc/64: Move pci_device_from_OF_node() out of asm/pci-bridge.h

Move pci_device_from_OF_node() in pci64.c because it needs definition
of struct device_node and is not worth inlining.

ppc32.c already has it in pci32.c.

That way pci-bridge.h doesn't need linux/of.h (Brought by asm/prom.h
via asm/pci.h)

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/3c88286b55413730d7784133993a46ef4a3607ce.1646767214.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/pci-bridge.h
arch/powerpc/kernel/pci_64.c