PCI: Always define the of_node helpers
authorBjørn Mork <bjorn@mork.no>
Sun, 18 Mar 2018 12:58:06 +0000 (13:58 +0100)
committerBjorn Helgaas <helgaas@kernel.org>
Fri, 30 Mar 2018 22:45:57 +0000 (17:45 -0500)
commitad32eb2df801548a4b55802384fbbfbc04d76bfa
tree9f626407128bfa2d8bd6684eefc4701ebe4ef773
parentdf62ab5e0f75608919df7442654b0fab78246b7b
PCI: Always define the of_node helpers

Simply move these inline functions outside the ifdef instead of duplicating
them as stubs in the !OF case.  The struct device of_node field does not
depend on OF.

This also fixes the missing stubbed pci_bus_to_OF_node().

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
include/linux/pci.h