From: Imre Kaloz Date: Mon, 19 Feb 2007 22:22:26 +0000 (+0000) Subject: use radio0 only on the 5312 X-Git-Tag: reboot~29915 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e32f19c986563ae9112b201c017e54f47be95dc0;p=oweals%2Fopenwrt.git use radio0 only on the 5312 SVN-Revision: 6326 --- 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);