]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab326f08cc9b4621e3f809e567d58f86e7f29b07
tree9f626407128bfa2d8bd6684eefc4701ebe4ef773
parent946484c96598043ba799fcbc519e4f1f9f82cbeb
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