summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2007-02-19 22:22:26 +0000
committerImre Kaloz <kaloz@openwrt.org>2007-02-19 22:22:26 +0000
commite32f19c986563ae9112b201c017e54f47be95dc0 (patch)
tree87cbd30add0fe80edb14c8532808c1bcd278618b /target/linux
parente10c97c2ca30b063dcb86c81fffe0b3abe505d2a (diff)
downloadmtk-20170518-e32f19c986563ae9112b201c017e54f47be95dc0.zip
mtk-20170518-e32f19c986563ae9112b201c017e54f47be95dc0.tar.gz
mtk-20170518-e32f19c986563ae9112b201c017e54f47be95dc0.tar.bz2
use radio0 only on the 5312
SVN-Revision: 6326
Diffstat (limited to 'target/linux')
-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 11f21fe..8404b88 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);