projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: fix build error w/o CONFIG_PCI
[openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ar71xx
/
mach-eap7660d.c
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c
index
d960d0c
..
69e22f3
100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c
+++ b/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c
@@
-46,6
+46,7
@@
static char eap7660d_wmac1_mac[6];
static u16 eap7660d_wmac0_eeprom[ATH5K_PLAT_EEP_MAX_WORDS];
static u16 eap7660d_wmac1_eeprom[ATH5K_PLAT_EEP_MAX_WORDS];
static u16 eap7660d_wmac0_eeprom[ATH5K_PLAT_EEP_MAX_WORDS];
static u16 eap7660d_wmac1_eeprom[ATH5K_PLAT_EEP_MAX_WORDS];
+#ifdef CONFIG_PCI
static struct ar71xx_pci_irq eap7660d_pci_irqs[] __initdata = {
{
.slot = 0,
static struct ar71xx_pci_irq eap7660d_pci_irqs[] __initdata = {
{
.slot = 0,
@@
-103,6
+104,12
@@
void __init eap7660d_pci_init(u8 *cal_data0, u8 *mac_addr0,
ar71xx_pci_plat_dev_init = eap7660d_pci_plat_dev_init;
ar71xx_pci_init(ARRAY_SIZE(eap7660d_pci_irqs), eap7660d_pci_irqs);
}
ar71xx_pci_plat_dev_init = eap7660d_pci_plat_dev_init;
ar71xx_pci_init(ARRAY_SIZE(eap7660d_pci_irqs), eap7660d_pci_irqs);
}
+#else
+static inline void eap7660d_pci_init(u8 *cal_data0, u8 *mac_addr0,
+ u8 *cal_data1, u8 *mac_addr1)
+{
+}
+#endif /* CONFIG_PCI */
static struct gpio_led eap7660d_leds_gpio[] __initdata = {
{
static struct gpio_led eap7660d_leds_gpio[] __initdata = {
{
This page took
0.031181 seconds
and
4
git commands to generate.