treewide: sysupgrade: get rid of platform_nand_pre_upgrade()
authorRafał Miłecki <rafal@milecki.pl>
Wed, 17 Jul 2019 09:32:54 +0000 (11:32 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Mon, 22 Jul 2019 12:27:37 +0000 (14:27 +0200)
commit1cbe0d659c4438cc6348093385a24e969aeadac0
treef901d8057341186f0fe8a8bee22ae9398f54b649
parent3b30ff29757258a0e16f51a86cdbb2a74a67ff7e
treewide: sysupgrade: get rid of platform_nand_pre_upgrade()

1) nand_do_upgrade() is always called by a target code
2) nand_do_upgrade() starts with calling platform_nand_pre_upgrade()

It means there is no need for the platform_nand_pre_upgrade() callback
at all. All code that was present there could bo moved & simplly called
by a target right before the nand_do_upgrade().

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/ar71xx/base-files/lib/upgrade/platform.sh
target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
target/linux/ipq806x/base-files/lib/upgrade/platform.sh
target/linux/ipq806x/base-files/lib/upgrade/zyxel.sh
target/linux/pistachio/base-files/lib/upgrade/platform.sh
target/linux/ramips/base-files/lib/upgrade/platform.sh
target/linux/ramips/base-files/lib/upgrade/ubnt.sh
target/linux/rb532/base-files/lib/upgrade/platform.sh