aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/ath79/dev-ar913x-wmac.c20
-rw-r--r--arch/mips/ath79/dev-ar913x-wmac.h8
-rw-r--r--arch/mips/ath79/mach-ap81.c2
3 files changed, 15 insertions, 15 deletions
diff --git a/arch/mips/ath79/dev-ar913x-wmac.c b/arch/mips/ath79/dev-ar913x-wmac.c
index 48f425a5ba28..2c9ba40be96e 100644
--- a/arch/mips/ath79/dev-ar913x-wmac.c
+++ b/arch/mips/ath79/dev-ar913x-wmac.c
@@ -19,9 +19,9 @@
19#include <asm/mach-ath79/ar71xx_regs.h> 19#include <asm/mach-ath79/ar71xx_regs.h>
20#include "dev-ar913x-wmac.h" 20#include "dev-ar913x-wmac.h"
21 21
22static struct ath9k_platform_data ar913x_wmac_data; 22static struct ath9k_platform_data ath79_wmac_data;
23 23
24static struct resource ar913x_wmac_resources[] = { 24static struct resource ath79_wmac_resources[] = {
25 { 25 {
26 .start = AR913X_WMAC_BASE, 26 .start = AR913X_WMAC_BASE,
27 .end = AR913X_WMAC_BASE + AR913X_WMAC_SIZE - 1, 27 .end = AR913X_WMAC_BASE + AR913X_WMAC_SIZE - 1,
@@ -33,21 +33,21 @@ static struct resource ar913x_wmac_resources[] = {
33 }, 33 },
34}; 34};
35 35
36static struct platform_device ar913x_wmac_device = { 36static struct platform_device ath79_wmac_device = {
37 .name = "ath9k", 37 .name = "ath9k",
38 .id = -1, 38 .id = -1,
39 .resource = ar913x_wmac_resources, 39 .resource = ath79_wmac_resources,
40 .num_resources = ARRAY_SIZE(ar913x_wmac_resources), 40 .num_resources = ARRAY_SIZE(ath79_wmac_resources),
41 .dev = { 41 .dev = {
42 .platform_data = &ar913x_wmac_data, 42 .platform_data = &ath79_wmac_data,
43 }, 43 },
44}; 44};
45 45
46void __init ath79_register_ar913x_wmac(u8 *cal_data) 46void __init ath79_register_wmac(u8 *cal_data)
47{ 47{
48 if (cal_data) 48 if (cal_data)
49 memcpy(ar913x_wmac_data.eeprom_data, cal_data, 49 memcpy(ath79_wmac_data.eeprom_data, cal_data,
50 sizeof(ar913x_wmac_data.eeprom_data)); 50 sizeof(ath79_wmac_data.eeprom_data));
51 51
52 /* reset the WMAC */ 52 /* reset the WMAC */
53 ath79_device_reset_set(AR913X_RESET_AMBA2WMAC); 53 ath79_device_reset_set(AR913X_RESET_AMBA2WMAC);
@@ -56,5 +56,5 @@ void __init ath79_register_ar913x_wmac(u8 *cal_data)
56 ath79_device_reset_clear(AR913X_RESET_AMBA2WMAC); 56 ath79_device_reset_clear(AR913X_RESET_AMBA2WMAC);
57 mdelay(10); 57 mdelay(10);
58 58
59 platform_device_register(&ar913x_wmac_device); 59 platform_device_register(&ath79_wmac_device);
60} 60}
diff --git a/arch/mips/ath79/dev-ar913x-wmac.h b/arch/mips/ath79/dev-ar913x-wmac.h
index 579d562bbda8..de1d78497fc9 100644
--- a/arch/mips/ath79/dev-ar913x-wmac.h
+++ b/arch/mips/ath79/dev-ar913x-wmac.h
@@ -9,9 +9,9 @@
9 * by the Free Software Foundation. 9 * by the Free Software Foundation.
10 */ 10 */
11 11
12#ifndef _ATH79_DEV_AR913X_WMAC_H 12#ifndef _ATH79_DEV_WMAC_H
13#define _ATH79_DEV_AR913X_WMAC_H 13#define _ATH79_DEV_WMAC_H
14 14
15void ath79_register_ar913x_wmac(u8 *cal_data); 15void ath79_register_wmac(u8 *cal_data);
16 16
17#endif /* _ATH79_DEV_AR913X_WMAC_H */ 17#endif /* _ATH79_DEV_WMAC_H */
diff --git a/arch/mips/ath79/mach-ap81.c b/arch/mips/ath79/mach-ap81.c
index 6c0826736012..84442da2d23c 100644
--- a/arch/mips/ath79/mach-ap81.c
+++ b/arch/mips/ath79/mach-ap81.c
@@ -92,7 +92,7 @@ static void __init ap81_setup(void)
92 ap81_gpio_keys); 92 ap81_gpio_keys);
93 ath79_register_spi(&ap81_spi_data, ap81_spi_info, 93 ath79_register_spi(&ap81_spi_data, ap81_spi_info,
94 ARRAY_SIZE(ap81_spi_info)); 94 ARRAY_SIZE(ap81_spi_info));
95 ath79_register_ar913x_wmac(cal_data); 95 ath79_register_wmac(cal_data);
96 ath79_register_usb(); 96 ath79_register_usb();
97} 97}
98 98