use radio0 only on the 5312

SVN-Revision: 6326
master
Imre Kaloz 18 years ago
parent e10c97c2ca
commit e32f19c986
  1. 8
      target/linux/atheros-2.6/files/arch/mips/atheros/ar5312.c

@ -282,9 +282,11 @@ int __init ar5312_init_devices(void)
} }
if (radio) { if (radio) {
if (*((u32 *) radio) & AR531X_RADIO0_MASK) { if (mips_machtype == MACH_ATHEROS_AR5312) {
ar5312_wmac[0].dev.platform_data = init_wmac(0); if (*((u32 *) radio) & AR531X_RADIO0_MASK) {
ar5312_devs[dev++] = &ar5312_wmac[0]; ar5312_wmac[0].dev.platform_data = init_wmac(0);
ar5312_devs[dev++] = &ar5312_wmac[0];
}
} }
if (*((u32 *) radio) & AR531X_RADIO1_MASK) { if (*((u32 *) radio) & AR531X_RADIO1_MASK) {
ar5312_wmac[1].dev.platform_data = init_wmac(1); ar5312_wmac[1].dev.platform_data = init_wmac(1);

Loading…
Cancel
Save