1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 16:43:09 +02:00

ar71xx: add ap91_pci_init_simple helper

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34646 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2012-12-12 16:49:48 +00:00
parent dc94ee1033
commit 6780a0759b
2 changed files with 8 additions and 0 deletions

View File

@ -109,6 +109,12 @@ __init void ap91_pci_init(u8 *cal_data, u8 *mac_addr)
pci_enable_ath9k_fixup(0, ap9x_wmac0_data.eeprom_data); pci_enable_ath9k_fixup(0, ap9x_wmac0_data.eeprom_data);
} }
__init void ap91_pci_init_simple(void)
{
ap91_pci_init(NULL, NULL);
ap9x_wmac0_data.eeprom_name = "pci_wmac0.eeprom";
}
static int ap94_pci_plat_dev_init(struct pci_dev *dev) static int ap94_pci_plat_dev_init(struct pci_dev *dev)
{ {
switch (PCI_SLOT(dev->devfn)) { switch (PCI_SLOT(dev->devfn)) {

View File

@ -22,6 +22,7 @@ void ap9x_pci_setup_wmac_leds(unsigned wmac, struct gpio_led *leds,
struct ath9k_platform_data *ap9x_pci_get_wmac_data(unsigned wmac); struct ath9k_platform_data *ap9x_pci_get_wmac_data(unsigned wmac);
void ap91_pci_init(u8 *cal_data, u8 *mac_addr); void ap91_pci_init(u8 *cal_data, u8 *mac_addr);
void ap91_pci_init_simple(void);
void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0, void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
u8 *cal_data1, u8 *mac_addr1); u8 *cal_data1, u8 *mac_addr1);
@ -38,6 +39,7 @@ static inline struct ath9k_platform_data *ap9x_pci_get_wmac_data(unsigned wmac)
} }
static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) {} static inline void ap91_pci_init(u8 *cal_data, u8 *mac_addr) {}
static inline void ap91_pci_init_simple(void) {}
static inline void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0, static inline void ap94_pci_init(u8 *cal_data0, u8 *mac_addr0,
u8 *cal_data1, u8 *mac_addr1) {} u8 *cal_data1, u8 *mac_addr1) {}
#endif #endif