treewide: sysupgrade: get rid of platform_nand_pre_upgrade()
[openwrt/staging/jogo.git] / target / linux / pistachio / base-files / lib / upgrade / platform.sh
index 4de019a27cad08edd24b2ba9821afeb5166f6868..174c321d3828cc5c505b36f7304019e013c07ea8 100755 (executable)
@@ -26,10 +26,7 @@ platform_do_upgrade() {
        # stage2 directly but need to refactor nand_upgrade_success
        # for this to work.
        #   Also the nand functions don't allow url to be used
-       nand_do_upgrade $1
-}
 
-platform_nand_pre_upgrade() {
        local board=$(board_name)
 
        case "$board" in
@@ -48,4 +45,6 @@ platform_nand_pre_upgrade() {
                echo "Upgrading partition $CI_UBIPART (/dev/mtd$(find_mtd_index $CI_UBIPART))"
                ;;
        esac
+
+       nand_do_upgrade $1
 }