mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Acked-by: Grant Likely <[email protected]> Acked-by: Michal Simek <[email protected]> Acked-by: Jesse Barnes <[email protected]>
This commit is contained in:
parent
64099d981c
commit
ef3b4f8cc2
4 changed files with 5 additions and 16 deletions
|
|
@ -102,11 +102,6 @@ struct pci_controller {
|
|||
};
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
static inline struct device_node *pci_bus_to_OF_node(struct pci_bus *bus)
|
||||
{
|
||||
return bus->dev.of_node;
|
||||
}
|
||||
|
||||
static inline struct pci_controller *pci_bus_to_host(const struct pci_bus *bus)
|
||||
{
|
||||
return bus->sysdata;
|
||||
|
|
|
|||
Loading…
Reference in a new issue