Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309044
b: refs/heads/master
c: 881b6ef
h: refs/heads/master
v: v3
  • Loading branch information
Gabor Juhos authored and Ralf Baechle committed May 15, 2012
1 parent 2757c46 commit 17280b8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c07c7dfa0f3575dc3276c544349fbf181381167
refs/heads/master: 881b6ef0cca3395ac0171472a1ce768fede7535b
23 changes: 12 additions & 11 deletions trunk/arch/mips/ath79/mach-ubnt-xm.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@

#include <linux/init.h>
#include <linux/pci.h>

#ifdef CONFIG_PCI
#include <linux/ath9k_platform.h>
#endif /* CONFIG_PCI */

#include <asm/mach-ath79/irq.h>

Expand Down Expand Up @@ -91,6 +88,17 @@ static struct ar724x_pci_data ubnt_xm_pci_data[] = {
.pdata = &ubnt_xm_eeprom_data,
},
};

static void __init ubnt_xm_pci_init(void)
{
memcpy(ubnt_xm_eeprom_data.eeprom_data, UBNT_XM_EEPROM_ADDR,
sizeof(ubnt_xm_eeprom_data.eeprom_data));

ar724x_pci_add_data(ubnt_xm_pci_data, ARRAY_SIZE(ubnt_xm_pci_data));
ath79_register_pci();
}
#else
static inline void ubnt_xm_pci_init(void) {}
#endif /* CONFIG_PCI */

static void __init ubnt_xm_init(void)
Expand All @@ -105,14 +113,7 @@ static void __init ubnt_xm_init(void)
ath79_register_spi(&ubnt_xm_spi_data, ubnt_xm_spi_info,
ARRAY_SIZE(ubnt_xm_spi_info));

#ifdef CONFIG_PCI
memcpy(ubnt_xm_eeprom_data.eeprom_data, UBNT_XM_EEPROM_ADDR,
sizeof(ubnt_xm_eeprom_data.eeprom_data));

ar724x_pci_add_data(ubnt_xm_pci_data, ARRAY_SIZE(ubnt_xm_pci_data));
#endif /* CONFIG_PCI */

ath79_register_pci();
ubnt_xm_pci_init();
}

MIPS_MACHINE(ATH79_MACH_UBNT_XM,
Expand Down

0 comments on commit 17280b8

Please sign in to comment.