use radio0 only on the 5312
authorkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Feb 2007 22:22:26 +0000 (22:22 +0000)
committerkaloz <kaloz@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Feb 2007 22:22:26 +0000 (22:22 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6326 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c

index 11f21fe..8404b88 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);
This page took 0.030811 seconds and 4 git commands to generate.