diff options
| author | Simon Glass <[email protected]> | 2019-12-28 10:44:40 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-01-17 13:26:48 -0500 |
| commit | 0ee48252b456f310225fa8dd0f3a9921cfcf3399 (patch) | |
| tree | f580fa4d2d2076d00d034d79f011885e5ca0169f /cmd/mem.c | |
| parent | 6b8d3ceaf59a6c4a2d3930aa8fa0c33e15093498 (diff) | |
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 <[email protected]>
Diffstat (limited to 'cmd/mem.c')
| -rw-r--r-- | cmd/mem.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <cli.h> #include <command.h> #include <console.h> +#include <flash.h> #include <hash.h> #include <mapmem.h> #include <watchdog.h> @@ -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); |
