cmd: ubifs: Move ubifs_initialized checking into cmd_ubifs_umount()
authorTien Fong Chee <tien.fong.chee@intel.com>
Fri, 6 Jul 2018 08:25:12 +0000 (16:25 +0800)
committerTom Rini <trini@konsulko.com>
Sat, 29 Sep 2018 00:21:47 +0000 (20:21 -0400)
commit10c2044062d045e27cbcda739501b96f670fb7f1
treead70e9979e585a401a640a9743032717954d756b
parentbbef20d479441b01d62252cf127498c58078b2c3
cmd: ubifs: Move ubifs_initialized checking into cmd_ubifs_umount()

cmd_ubifs_umount() function would be called directly instead of involving
whole command machinery in generic firmware loader, so checking on
ubifs_initialized status need to be done in cmd_ubifs_umount() without
breaking original functionality design.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
[trini: Fix conflicting type error in cmd/ubi.c]
Signed-off-by: Tom Rini <trini@konsulko.com>
cmd/ubi.c
cmd/ubifs.c
include/ubi_uboot.h