summaryrefslogtreecommitdiff
path: root/target/linux/atheros-2.6/files/arch/mips/atheros
diff options
context:
space:
mode:
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-02-19 22:22:26 +0000
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-02-19 22:22:26 +0000
commitcedcb81f3062e399a9d37518d11af293f04e8522 (patch)
treec27512be09406f9cd7a1d93dded667f21c65d2d7 /target/linux/atheros-2.6/files/arch/mips/atheros
parent5324818c9de06bdb0beb85967a9e1f477e42e598 (diff)
use radio0 only on the 5312
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6326 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/atheros-2.6/files/arch/mips/atheros')
-rw-r--r--target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c b/target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c
index 11f21fe5c0..8404b882c2 100644
--- a/target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c
+++ b/target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c
@@ -282,9 +282,11 @@ int __init ar5312_init_devices(void)
}
if (radio) {
- if (*((u32 *) radio) & AR531X_RADIO0_MASK) {
- ar5312_wmac[0].dev.platform_data = init_wmac(0);
- ar5312_devs[dev++] = &ar5312_wmac[0];
+ if (mips_machtype == MACH_ATHEROS_AR5312) {
+ if (*((u32 *) radio) & AR531X_RADIO0_MASK) {
+ ar5312_wmac[0].dev.platform_data = init_wmac(0);
+ ar5312_devs[dev++] = &ar5312_wmac[0];
+ }
}
if (*((u32 *) radio) & AR531X_RADIO1_MASK) {
ar5312_wmac[1].dev.platform_data = init_wmac(1);