aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/of/address.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/of/address.c')
-rw-r--r--drivers/of/address.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index 1a54f1ffaadb..cb4242a69cd5 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -91,7 +91,7 @@ static unsigned int of_bus_default_get_flags(const __be32 *addr)
91 return IORESOURCE_MEM; 91 return IORESOURCE_MEM;
92} 92}
93 93
94#ifdef CONFIG_PCI 94#ifdef CONFIG_OF_ADDRESS_PCI
95/* 95/*
96 * PCI bus specific translator 96 * PCI bus specific translator
97 */ 97 */
@@ -166,7 +166,9 @@ static int of_bus_pci_translate(__be32 *addr, u64 offset, int na)
166{ 166{
167 return of_bus_default_translate(addr + 1, offset, na - 1); 167 return of_bus_default_translate(addr + 1, offset, na - 1);
168} 168}
169#endif /* CONFIG_OF_ADDRESS_PCI */
169 170
171#ifdef CONFIG_PCI
170const __be32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size, 172const __be32 *of_get_pci_address(struct device_node *dev, int bar_no, u64 *size,
171 unsigned int *flags) 173 unsigned int *flags)
172{ 174{
@@ -356,7 +358,7 @@ static unsigned int of_bus_isa_get_flags(const __be32 *addr)
356 */ 358 */
357 359
358static struct of_bus of_busses[] = { 360static struct of_bus of_busses[] = {
359#ifdef CONFIG_PCI 361#ifdef CONFIG_OF_ADDRESS_PCI
360 /* PCI */ 362 /* PCI */
361 { 363 {
362 .name = "pci", 364 .name = "pci",
@@ -367,7 +369,7 @@ static struct of_bus of_busses[] = {
367 .translate = of_bus_pci_translate, 369 .translate = of_bus_pci_translate,
368 .get_flags = of_bus_pci_get_flags, 370 .get_flags = of_bus_pci_get_flags,
369 }, 371 },
370#endif /* CONFIG_PCI */ 372#endif /* CONFIG_OF_ADDRESS_PCI */
371 /* ISA */ 373 /* ISA */
372 { 374 {
373 .name = "isa", 375 .name = "isa",