Ignore:
Timestamp:
2010-04-20T15:28:41+02:00 (6 years ago)
Author:
juhosg
Message:

backfire: atheros: register wmac device only if it is enabled in the board config (backport of r21038)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/target/linux/atheros/patches-2.6.32/100-board.patch

    r20197 r21040  
    15581558--- /dev/null 
    15591559+++ b/arch/mips/ar231x/ar5312.c 
    1560 @@ -0,0 +1,547 @@ 
     1560@@ -0,0 +1,549 @@ 
    15611561+/* 
    15621562+ * This file is subject to the terms and conditions of the GNU General Public 
     
    19411941+                       return 0; 
    19421942+ 
    1943 +               if (*((u32 *) radio) & AR531X_RADIO0_MASK) 
     1943+               if ((*((u32 *) radio) & AR531X_RADIO0_MASK) && 
     1944+                   (config->flags & BD_WLAN0)) 
    19441945+                       ar231x_add_wmac(0, AR531X_WLAN0, 
    19451946+                               AR5312_IRQ_WLAN0_INTRS); 
     
    19651966+       } 
    19661967+ 
    1967 +       if (*((u32 *) radio) & AR531X_RADIO1_MASK) 
     1968+       if ((*((u32 *) radio) & AR531X_RADIO1_MASK) && 
     1969+           (config->flags & BD_WLAN1)) 
    19681970+               ar231x_add_wmac(1, AR531X_WLAN1, 
    19691971+                       AR5312_IRQ_WLAN1_INTRS); 
Note: See TracChangeset for help on using the changeset viewer.