brcm63xx: call brcm63xx_detect explicitly
authorJonas Gorski <jogo@openwrt.org>
Mon, 16 Mar 2015 11:53:14 +0000 (11:53 +0000)
committerJonas Gorski <jogo@openwrt.org>
Mon, 16 Mar 2015 11:53:14 +0000 (11:53 +0000)
Now that we have converted all users of global variables to use
brcm63xx_board_name, we can savely convert the implicit call to detect
in brcm63xx.sh to a single, explicit call in preinit.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 44840

target/linux/brcm63xx/base-files/lib/brcm63xx.sh
target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh

index 058833963fa34fc6ee391d298b2b60c2f1794ea4..2c18762d190b0817bec48cadedde626e92ba92db 100755 (executable)
@@ -269,5 +269,3 @@ brcm63xx_board_name() {
 
        echo $name
 }
-
-brcm63xx_detect
index dd60c4995ee9ccb5086bb3cc4cc83a080182946f..417969502485744c1671873844e2f46b7bce4e6f 100644 (file)
@@ -2,6 +2,8 @@
 
 do_brcm63xx() {
        . /lib/brcm63xx.sh
+
+       brcm63xx_detect
 }
 
 boot_hook_add preinit_main do_brcm63xx