summaryrefslogtreecommitdiff
path: root/cmd/load.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-12-28 20:44:40 +0300
committerTom Rini <trini@konsulko.com>2020-01-17 21:26:48 +0300
commit0ee48252b456f310225fa8dd0f3a9921cfcf3399 (patch)
treef580fa4d2d2076d00d034d79f011885e5ca0169f /cmd/load.c
parent6b8d3ceaf59a6c4a2d3930aa8fa0c33e15093498 (diff)
downloadu-boot-0ee48252b456f310225fa8dd0f3a9921cfcf3399.tar.xz
common: Move flash_perror() to flash.h
This function belongs more in flash.h than common.h so move it. Also remove the space before the bracket in some calls. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/load.c')
-rw-r--r--cmd/load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/load.c b/cmd/load.c
index 3bfc1b41ec..68ff3010b4 100644
--- a/cmd/load.c
+++ b/cmd/load.c
@@ -12,6 +12,7 @@
#include <console.h>
#include <cpu_func.h>
#include <env.h>
+#include <flash.h>
#include <s_record.h>
#include <net.h>
#include <exports.h>
@@ -980,7 +981,7 @@ static ulong load_serial_ymodem(ulong offset, int mode)
rc = flash_write((char *) ymodemBuf,
store_addr, res);
if (rc != 0) {
- flash_perror (rc);
+ flash_perror(rc);
return (~0);
}
} else