projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69e4e63
)
mips: pci: Add ifdef around pci_proc_domain
author
Zubair Lutfullah Kakakhel
<
[email protected]
>
Fri, 12 Dec 2014 12:45:39 +0000
(12:45 +0000)
committer
Ralf Baechle
<
[email protected]
>
Fri, 20 Feb 2015 12:16:14 +0000
(13:16 +0100)
Without these, there are multiple definitions of pci_proc_domain()
and pci_domain_nr() if linux/pci.h and asm/pci.h are included.
Add #ifdefs around them
Signed-off-by: Zubair Lutfullah Kakakhel <
[email protected]
>
Reviewed-by: Markos Chandras <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/8670/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/include/asm/pci.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/pci.h
b/arch/mips/include/asm/pci.h
index 69529624a0050713b120ecfd3b430a601dfb567b..193b4c6b7541a774f3a0ccfbaa8bb7f7add55b83 100644
(file)
--- a/
arch/mips/include/asm/pci.h
+++ b/
arch/mips/include/asm/pci.h
@@
-121,6
+121,7
@@
static inline void pci_dma_burst_advice(struct pci_dev *pdev,
}
#endif
+#ifdef CONFIG_PCI_DOMAINS
#define pci_domain_nr(bus) ((struct pci_controller *)(bus)->sysdata)->index
static inline int pci_proc_domain(struct pci_bus *bus)
@@
-128,6
+129,7
@@
static inline int pci_proc_domain(struct pci_bus *bus)
struct pci_controller *hose = bus->sysdata;
return hose->need_domain_info;
}
+#endif /* CONFIG_PCI_DOMAINS */
#endif /* __KERNEL__ */