summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-03-16 11:53:14 +0000
committerJonas Gorski <jogo@openwrt.org>2015-03-16 11:53:14 +0000
commit5d0e2d1b4163c330ba58cf573571660b0b27bd25 (patch)
tree1e4b394eefa2ba3898bcb62aacb2a8cdde8052a5 /target/linux/brcm63xx
parent020e5733f961aeb795337a084411d52c46ce27d5 (diff)
downloadmtk-20170518-5d0e2d1b4163c330ba58cf573571660b0b27bd25.zip
mtk-20170518-5d0e2d1b4163c330ba58cf573571660b0b27bd25.tar.gz
mtk-20170518-5d0e2d1b4163c330ba58cf573571660b0b27bd25.tar.bz2
brcm63xx: call brcm63xx_detect explicitly
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
Diffstat (limited to 'target/linux/brcm63xx')
-rwxr-xr-xtarget/linux/brcm63xx/base-files/lib/brcm63xx.sh2
-rw-r--r--target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
index 0588339..2c18762 100755
--- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
+++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
@@ -269,5 +269,3 @@ brcm63xx_board_name() {
echo $name
}
-
-brcm63xx_detect
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh
index dd60c49..4179695 100644
--- a/target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh
+++ b/target/linux/brcm63xx/base-files/lib/preinit/03_do_brcm63xx.sh
@@ -2,6 +2,8 @@
do_brcm63xx() {
. /lib/brcm63xx.sh
+
+ brcm63xx_detect
}
boot_hook_add preinit_main do_brcm63xx