summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2018-04-23 10:50:38 -0400
committerTom Rini <[email protected]>2018-04-23 10:50:38 -0400
commitff719a73d93196d6f1d9456bdc40f48be4f91484 (patch)
tree70eaed09edece71194090bcbeb47e51f49512fd1 /cmd
parentf6549c85410668e73503221ce6147d049cc6251d (diff)
parentebc675b98d92f7b8264ca84e65cc896d95f9868b (diff)
Merge tag 'xilinx-for-v2018.05-rc3' of git://git.denx.de/u-boot-microblaze
Xilinx fixes for v2018.05-rc3 - Fix nand initialization - Runtime ddr detection for static DDR setting - Enable rewriting env locations - Sync defconfig for zc770 xm011 - Remove useless ioremap in watchdog - Check return value from soc_clk_dump()
Diffstat (limited to 'cmd')
-rw-r--r--cmd/clk.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/cmd/clk.c b/cmd/clk.c
index 6d3d46a1844..52b25405ce6 100644
--- a/cmd/clk.c
+++ b/cmd/clk.c
@@ -16,7 +16,15 @@ int __weak soc_clk_dump(void)
static int do_clk_dump(cmd_tbl_t *cmdtp, int flag, int argc,
char *const argv[])
{
- return soc_clk_dump();
+ int ret;
+
+ ret = soc_clk_dump();
+ if (ret < 0) {
+ printf("Clock dump error %d\n", ret);
+ ret = CMD_RET_FAILURE;
+ }
+
+ return ret;
}
static cmd_tbl_t cmd_clk_sub[] = {