diff options
author | Simon Glass <sjg@chromium.org> | 2020-05-24 17:38:21 -0600 |
---|---|---|
committer | Bin Meng <bmeng.cn@gmail.com> | 2020-05-27 14:40:09 +0800 |
commit | 0e7b6312e7c6780381612fe09a73c77f77e63c2d (patch) | |
tree | 86bf311dd1e2de0b65cfce44d9e2968375b29690 /include | |
parent | c685f8bcfcf097b1f46ea742a65765b7696a9a48 (diff) |
cbfs: Return the error code from file_cbfs_init()
We may as well return the error code and use it directly in the command
code. CBFS still uses its own error enum which we may be able to remove,
but leave it for now.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/cbfs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/cbfs.h b/include/cbfs.h index 07bbcfd2cf..962b3e848b 100644 --- a/include/cbfs.h +++ b/include/cbfs.h @@ -98,10 +98,10 @@ enum cbfs_result cbfs_get_result(void); /** * file_cbfs_init() - Initialize the CBFS driver and load metadata into RAM. * - * @end_of_rom: Points to the end of the ROM the CBFS should be read - * from. + * @end_of_rom: Points to the end of the ROM the CBFS should be read from + * @return 0 if OK, -ve on error */ -void file_cbfs_init(ulong end_of_rom); +int file_cbfs_init(ulong end_of_rom); /** * file_cbfs_get_header() - Get the header structure for the current CBFS. |