Changeset 26606


Ignore:
Timestamp:
2011-04-12T15:14:56+02:00 (5 years ago)
Author:
juhosg
Message:

ar71xx: fix build error w/o CONFIG_PCI

Location:
trunk/target/linux/ar71xx/files/arch/mips
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-pci.h

    r24568 r26606  
    1818#else 
    1919static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) { } 
    20 static inline void ap91_pci_setup_wmac_led(int pin) { } 
     20static inline void ap91_pci_setup_wmac_led_pin(int pin) { } 
    2121static inline void ap91_pci_setup_wmac_gpio(u32 mask, u32 gpio) { } 
    2222#endif 
  • trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c

    r26603 r26606  
    4747static u16 eap7660d_wmac1_eeprom[ATH5K_PLAT_EEP_MAX_WORDS]; 
    4848 
     49#ifdef CONFIG_PCI 
    4950static struct ar71xx_pci_irq eap7660d_pci_irqs[] __initdata = { 
    5051        { 
     
    104105        ar71xx_pci_init(ARRAY_SIZE(eap7660d_pci_irqs), eap7660d_pci_irqs); 
    105106} 
     107#else 
     108static inline void eap7660d_pci_init(u8 *cal_data0, u8 *mac_addr0, 
     109                                     u8 *cal_data1, u8 *mac_addr1) 
     110{ 
     111} 
     112#endif /* CONFIG_PCI */ 
    106113 
    107114static struct gpio_led eap7660d_leds_gpio[] __initdata = { 
  • trunk/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/pci.h

    r16674 r26606  
    2121}; 
    2222 
     23#ifdef CONFIG_PCI 
    2324extern int (*ar71xx_pci_plat_dev_init)(struct pci_dev *dev); 
    2425extern unsigned ar71xx_pci_nr_irqs __initdata; 
     
    3637 
    3738int ar71xx_pci_init(unsigned nr_irqs, struct ar71xx_pci_irq *map) __init; 
     39#else 
     40static inline int ar71xx_pci_init(unsigned nr_irqs, struct ar71xx_pci_irq *map) 
     41{ 
     42        return 0; 
     43} 
     44#endif 
    3845 
    3946#endif /* __ASM_MACH_AR71XX_PCI_H */ 
Note: See TracChangeset for help on using the changeset viewer.