Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309035
b: refs/heads/master
c: 6335aef
h: refs/heads/master
i:
  309033: 52fdadd
  309031: 9f8541c
v: v3
  • Loading branch information
Gabor Juhos authored and Ralf Baechle committed May 15, 2012
1 parent 7b6c43b commit c35998a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 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: 659243ccaf296ae122c159d4c573f93561e1b8d6
refs/heads/master: 6335aef59c55f50e6d8017a28c0ee985b533ea29
1 change: 1 addition & 0 deletions trunk/arch/mips/ath79/mach-ubnt-xm.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ static void __init ubnt_xm_init(void)
ath724x_pci_add_data(ubnt_xm_pci_data, ARRAY_SIZE(ubnt_xm_pci_data));
#endif /* CONFIG_PCI */

ath79_register_pci();
}

MIPS_MACHINE(ATH79_MACH_UBNT_XM,
Expand Down
10 changes: 10 additions & 0 deletions trunk/arch/mips/ath79/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/

#include <linux/pci.h>
#include <asm/mach-ath79/ath79.h>
#include <asm/mach-ath79/pci.h>
#include "pci.h"

static struct ath724x_pci_data *pci_data;
Expand Down Expand Up @@ -44,3 +46,11 @@ int pcibios_plat_dev_init(struct pci_dev *dev)

return PCIBIOS_SUCCESSFUL;
}

int __init ath79_register_pci(void)
{
if (soc_is_ar724x())
return ath724x_pcibios_init();

return -ENODEV;
}
6 changes: 6 additions & 0 deletions trunk/arch/mips/ath79/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ struct ath724x_pci_data {

void ath724x_pci_add_data(struct ath724x_pci_data *data, int size);

#ifdef CONFIG_PCI
int ath79_register_pci(void);
#else
static inline int ath79_register_pci(void) { return 0; }
#endif

#endif /* __ASM_MACH_ATH79_PCI_ATH724X_H */
2 changes: 0 additions & 2 deletions trunk/arch/mips/pci/pci-ath724x.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,3 @@ int __init ath724x_pcibios_init(void)

return PCIBIOS_SUCCESSFUL;
}

arch_initcall(ath724x_pcibios_init);

0 comments on commit c35998a

Please sign in to comment.