Skip to content

Commit 3b55809

Browse files
robherringLorenzo Pieralisi
authored andcommitted
PCI: Make devm_of_pci_get_host_bridge_resources() static
Now that all the PCI host drivers are using pci_parse_request_of_pci_ranges(), make devm_of_pci_get_host_bridge_resources() static. Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Cc: Bjorn Helgaas <[email protected]>
1 parent 085f793 commit 3b55809

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

drivers/pci/of.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ void of_pci_check_probe_only(void)
236236
}
237237
EXPORT_SYMBOL_GPL(of_pci_check_probe_only);
238238

239-
#if defined(CONFIG_OF_ADDRESS)
240239
/**
241240
* devm_of_pci_get_host_bridge_resources() - Resource-managed parsing of PCI
242241
* host bridge resources from DT
@@ -255,7 +254,7 @@ EXPORT_SYMBOL_GPL(of_pci_check_probe_only);
255254
* It returns zero if the range parsing has been successful or a standard error
256255
* value if it failed.
257256
*/
258-
int devm_of_pci_get_host_bridge_resources(struct device *dev,
257+
static int devm_of_pci_get_host_bridge_resources(struct device *dev,
259258
unsigned char busno, unsigned char bus_max,
260259
struct list_head *resources,
261260
struct list_head *ib_resources,
@@ -390,8 +389,6 @@ int devm_of_pci_get_host_bridge_resources(struct device *dev,
390389
pci_free_resource_list(resources);
391390
return err;
392391
}
393-
EXPORT_SYMBOL_GPL(devm_of_pci_get_host_bridge_resources);
394-
#endif /* CONFIG_OF_ADDRESS */
395392

396393
#if IS_ENABLED(CONFIG_OF_IRQ)
397394
/**

drivers/pci/pci.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -630,23 +630,6 @@ static inline void pci_set_bus_of_node(struct pci_bus *bus) { }
630630
static inline void pci_release_bus_of_node(struct pci_bus *bus) { }
631631
#endif /* CONFIG_OF */
632632

633-
#if defined(CONFIG_OF_ADDRESS)
634-
int devm_of_pci_get_host_bridge_resources(struct device *dev,
635-
unsigned char busno, unsigned char bus_max,
636-
struct list_head *resources,
637-
struct list_head *ib_resources,
638-
resource_size_t *io_base);
639-
#else
640-
static inline int devm_of_pci_get_host_bridge_resources(struct device *dev,
641-
unsigned char busno, unsigned char bus_max,
642-
struct list_head *resources,
643-
struct list_head *ib_resources,
644-
resource_size_t *io_base)
645-
{
646-
return -EINVAL;
647-
}
648-
#endif
649-
650633
#ifdef CONFIG_PCIEAER
651634
void pci_no_aer(void);
652635
void pci_aer_init(struct pci_dev *dev);

0 commit comments

Comments
 (0)