From 9dfbc24459ccb0623c76f33b359e8fedb0e6d0a7 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 28 Dec 2019 10:44:40 -0700 Subject: 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 --- cmd/load.c | 3 ++- cmd/mem.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/load.c b/cmd/load.c index 3bfc1b41ece..68ff3010b47 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -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 diff --git a/cmd/mem.c b/cmd/mem.c index 4ec450b0502..4de5ab01fdf 100644 --- a/cmd/mem.c +++ b/cmd/mem.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -339,7 +340,7 @@ static int do_mem_cp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) rc = flash_write((char *)src, (ulong)dst, count * size); if (rc != 0) { - flash_perror (rc); + flash_perror(rc); unmap_sysmem(src); unmap_sysmem(dst); return (1); -- cgit v1.2.3