aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/ath79
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/ath79')
-rw-r--r--arch/mips/ath79/mach-ubnt-xm.c4
-rw-r--r--arch/mips/ath79/pci.c6
-rw-r--r--arch/mips/ath79/pci.h10
3 files changed, 10 insertions, 10 deletions
diff --git a/arch/mips/ath79/mach-ubnt-xm.c b/arch/mips/ath79/mach-ubnt-xm.c
index edbc093bf665..3266ee063bd6 100644
--- a/arch/mips/ath79/mach-ubnt-xm.c
+++ b/arch/mips/ath79/mach-ubnt-xm.c
@@ -84,7 +84,7 @@ static struct ath79_spi_platform_data ubnt_xm_spi_data = {
84#ifdef CONFIG_PCI 84#ifdef CONFIG_PCI
85static struct ath9k_platform_data ubnt_xm_eeprom_data; 85static struct ath9k_platform_data ubnt_xm_eeprom_data;
86 86
87static struct ath724x_pci_data ubnt_xm_pci_data[] = { 87static struct ar724x_pci_data ubnt_xm_pci_data[] = {
88 { 88 {
89 .irq = UBNT_XM_PCI_IRQ, 89 .irq = UBNT_XM_PCI_IRQ,
90 .pdata = &ubnt_xm_eeprom_data, 90 .pdata = &ubnt_xm_eeprom_data,
@@ -108,7 +108,7 @@ static void __init ubnt_xm_init(void)
108 memcpy(ubnt_xm_eeprom_data.eeprom_data, UBNT_XM_EEPROM_ADDR, 108 memcpy(ubnt_xm_eeprom_data.eeprom_data, UBNT_XM_EEPROM_ADDR,
109 sizeof(ubnt_xm_eeprom_data.eeprom_data)); 109 sizeof(ubnt_xm_eeprom_data.eeprom_data));
110 110
111 ath724x_pci_add_data(ubnt_xm_pci_data, ARRAY_SIZE(ubnt_xm_pci_data)); 111 ar724x_pci_add_data(ubnt_xm_pci_data, ARRAY_SIZE(ubnt_xm_pci_data));
112#endif /* CONFIG_PCI */ 112#endif /* CONFIG_PCI */
113 113
114 ath79_register_pci(); 114 ath79_register_pci();
diff --git a/arch/mips/ath79/pci.c b/arch/mips/ath79/pci.c
index 855a69dcc86e..72281fb5360f 100644
--- a/arch/mips/ath79/pci.c
+++ b/arch/mips/ath79/pci.c
@@ -13,10 +13,10 @@
13#include <asm/mach-ath79/pci.h> 13#include <asm/mach-ath79/pci.h>
14#include "pci.h" 14#include "pci.h"
15 15
16static struct ath724x_pci_data *pci_data; 16static struct ar724x_pci_data *pci_data;
17static int pci_data_size; 17static int pci_data_size;
18 18
19void ath724x_pci_add_data(struct ath724x_pci_data *data, int size) 19void ar724x_pci_add_data(struct ar724x_pci_data *data, int size)
20{ 20{
21 pci_data = data; 21 pci_data = data;
22 pci_data_size = size; 22 pci_data_size = size;
@@ -50,7 +50,7 @@ int pcibios_plat_dev_init(struct pci_dev *dev)
50int __init ath79_register_pci(void) 50int __init ath79_register_pci(void)
51{ 51{
52 if (soc_is_ar724x()) 52 if (soc_is_ar724x())
53 return ath724x_pcibios_init(); 53 return ar724x_pcibios_init();
54 54
55 return -ENODEV; 55 return -ENODEV;
56} 56}
diff --git a/arch/mips/ath79/pci.h b/arch/mips/ath79/pci.h
index 787fac2c08f0..e0601c4a7fc6 100644
--- a/arch/mips/ath79/pci.h
+++ b/arch/mips/ath79/pci.h
@@ -8,15 +8,15 @@
8 * by the Free Software Foundation. 8 * by the Free Software Foundation.
9 */ 9 */
10 10
11#ifndef __ASM_MACH_ATH79_PCI_ATH724X_H 11#ifndef _ATH79_PCI_H
12#define __ASM_MACH_ATH79_PCI_ATH724X_H 12#define _ATH79_PCI_H
13 13
14struct ath724x_pci_data { 14struct ar724x_pci_data {
15 int irq; 15 int irq;
16 void *pdata; 16 void *pdata;
17}; 17};
18 18
19void ath724x_pci_add_data(struct ath724x_pci_data *data, int size); 19void ar724x_pci_add_data(struct ar724x_pci_data *data, int size);
20 20
21#ifdef CONFIG_PCI 21#ifdef CONFIG_PCI
22int ath79_register_pci(void); 22int ath79_register_pci(void);
@@ -24,4 +24,4 @@ int ath79_register_pci(void);
24static inline int ath79_register_pci(void) { return 0; } 24static inline int ath79_register_pci(void) { return 0; }
25#endif 25#endif
26 26
27#endif /* __ASM_MACH_ATH79_PCI_ATH724X_H */ 27#endif /* _ATH79_PCI_H */