]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: Hide pci_device_from_OF_node() for non-powermac code
authorPali Rohár <pali@kernel.org>
Wed, 6 Jul 2022 10:43:04 +0000 (12:43 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 27 Jul 2022 11:36:03 +0000 (21:36 +1000)
commit41be4c9477473ce0aaa8ed6507b94583d0fe7c07
treef616949cc44e37859bdcc74c3bf3a950ee6ef111
parentd3803ef02218b583b4ada7f011400101a75e3afd
powerpc/pci: Hide pci_device_from_OF_node() for non-powermac code

Function pci_device_from_OF_node() is used only in powermac code. So
hide it from all other platforms.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220706104308.5390-2-pali@kernel.org
arch/powerpc/include/asm/pci-bridge.h
arch/powerpc/kernel/pci_32.c
arch/powerpc/kernel/pci_64.c