diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-04-10 21:34:33 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-06-07 19:08:57 -0400 |
commit | ef3b4f8cc20e80c767e47b848fb7512770ab80d7 (patch) | |
tree | dc3550170335564b7644e1db62658a56d2c7ff8e /include/linux/pci.h | |
parent | 64099d981c9916ec4a485b3ffbb89fa877fc595f (diff) |
pci/of: Consolidate pci_bus_to_OF_node()
The generic code always get the device-node in the right place now
so a single implementation will work for all archs
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Michal Simek <monstr@monstr.eu>
Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 795e6a56d8cd..2d292182dde5 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1605,6 +1605,11 @@ static inline struct device_node *pci_device_to_OF_node(struct pci_dev *pdev) | |||
1605 | return pdev ? pdev->dev.of_node : NULL; | 1605 | return pdev ? pdev->dev.of_node : NULL; |
1606 | } | 1606 | } |
1607 | 1607 | ||
1608 | static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus) | ||
1609 | { | ||
1610 | return bus ? bus->dev.of_node : NULL; | ||
1611 | } | ||
1612 | |||
1608 | #else /* CONFIG_OF */ | 1613 | #else /* CONFIG_OF */ |
1609 | static inline void pci_set_of_node(struct pci_dev *dev) { } | 1614 | static inline void pci_set_of_node(struct pci_dev *dev) { } |
1610 | static inline void pci_release_of_node(struct pci_dev *dev) { } | 1615 | static inline void pci_release_of_node(struct pci_dev *dev) { } |