Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284730
b: refs/heads/master
c: 67b0f0f
h: refs/heads/master
v: v3
  • Loading branch information
Gabor Juhos authored and Ralf Baechle committed Dec 7, 2011
1 parent 1ea2947 commit b464a6d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 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: be5f3623204e15cb8a95a6d381ae6eb074ba46b5
refs/heads/master: 67b0f0f1b355df293f92069a0409452c9e24370b
20 changes: 10 additions & 10 deletions trunk/arch/mips/ath79/dev-ar913x-wmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#include <asm/mach-ath79/ar71xx_regs.h>
#include "dev-ar913x-wmac.h"

static struct ath9k_platform_data ar913x_wmac_data;
static struct ath9k_platform_data ath79_wmac_data;

static struct resource ar913x_wmac_resources[] = {
static struct resource ath79_wmac_resources[] = {
{
.start = AR913X_WMAC_BASE,
.end = AR913X_WMAC_BASE + AR913X_WMAC_SIZE - 1,
Expand All @@ -33,21 +33,21 @@ static struct resource ar913x_wmac_resources[] = {
},
};

static struct platform_device ar913x_wmac_device = {
static struct platform_device ath79_wmac_device = {
.name = "ath9k",
.id = -1,
.resource = ar913x_wmac_resources,
.num_resources = ARRAY_SIZE(ar913x_wmac_resources),
.resource = ath79_wmac_resources,
.num_resources = ARRAY_SIZE(ath79_wmac_resources),
.dev = {
.platform_data = &ar913x_wmac_data,
.platform_data = &ath79_wmac_data,
},
};

void __init ath79_register_ar913x_wmac(u8 *cal_data)
void __init ath79_register_wmac(u8 *cal_data)
{
if (cal_data)
memcpy(ar913x_wmac_data.eeprom_data, cal_data,
sizeof(ar913x_wmac_data.eeprom_data));
memcpy(ath79_wmac_data.eeprom_data, cal_data,
sizeof(ath79_wmac_data.eeprom_data));

/* reset the WMAC */
ath79_device_reset_set(AR913X_RESET_AMBA2WMAC);
Expand All @@ -56,5 +56,5 @@ void __init ath79_register_ar913x_wmac(u8 *cal_data)
ath79_device_reset_clear(AR913X_RESET_AMBA2WMAC);
mdelay(10);

platform_device_register(&ar913x_wmac_device);
platform_device_register(&ath79_wmac_device);
}
8 changes: 4 additions & 4 deletions trunk/arch/mips/ath79/dev-ar913x-wmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* by the Free Software Foundation.
*/

#ifndef _ATH79_DEV_AR913X_WMAC_H
#define _ATH79_DEV_AR913X_WMAC_H
#ifndef _ATH79_DEV_WMAC_H
#define _ATH79_DEV_WMAC_H

void ath79_register_ar913x_wmac(u8 *cal_data);
void ath79_register_wmac(u8 *cal_data);

#endif /* _ATH79_DEV_AR913X_WMAC_H */
#endif /* _ATH79_DEV_WMAC_H */
2 changes: 1 addition & 1 deletion trunk/arch/mips/ath79/mach-ap81.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static void __init ap81_setup(void)
ap81_gpio_keys);
ath79_register_spi(&ap81_spi_data, ap81_spi_info,
ARRAY_SIZE(ap81_spi_info));
ath79_register_ar913x_wmac(cal_data);
ath79_register_wmac(cal_data);
ath79_register_usb();
}

Expand Down

0 comments on commit b464a6d

Please sign in to comment.