use radio0 only on the 5312
[openwrt/svn-archive/archive.git] / target / linux / atheros-2.6 / files / arch / mips / atheros / ar5312.c
index 11f21fe5c0c6dab949e109ecdbeab57f645ec761..8404b882c2c3b02a8d2a5b622dc719c19f6c9808 100644 (file)
@@ -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);