of.c (669cbc708122fc7a02282058a09f096200cee090) of.c (b64aa11eb2ddb0600361178286d7b7ed5a069fd8)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * PCI <-> OF mapping helpers
4 *
5 * Copyright 2011 IBM Corp.
6 */
7#define pr_fmt(fmt) "PCI: OF: " fmt
8

--- 555 unchanged lines hidden (view full) ---

564 return 0;
565}
566
567int devm_of_pci_bridge_init(struct device *dev, struct pci_host_bridge *bridge)
568{
569 if (!dev->of_node)
570 return 0;
571
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * PCI <-> OF mapping helpers
4 *
5 * Copyright 2011 IBM Corp.
6 */
7#define pr_fmt(fmt) "PCI: OF: " fmt
8

--- 555 unchanged lines hidden (view full) ---

564 return 0;
565}
566
567int devm_of_pci_bridge_init(struct device *dev, struct pci_host_bridge *bridge)
568{
569 if (!dev->of_node)
570 return 0;
571
572 bridge->swizzle_irq = pci_common_swizzle;
573 bridge->map_irq = of_irq_parse_and_map_pci;
574
572 return pci_parse_request_of_pci_ranges(dev, bridge);
573}
574
575#endif /* CONFIG_PCI */
576
577/**
578 * This function will try to find the limitation of link speed by finding
579 * a property called "max-link-speed" of the given device node.

--- 17 unchanged lines hidden ---
575 return pci_parse_request_of_pci_ranges(dev, bridge);
576}
577
578#endif /* CONFIG_PCI */
579
580/**
581 * This function will try to find the limitation of link speed by finding
582 * a property called "max-link-speed" of the given device node.

--- 17 unchanged lines hidden ---