diff options
author | Simon Glass <sjg@chromium.org> | 2013-02-24 17:33:25 +0000 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2013-02-28 19:09:23 -0800 |
commit | 0ccff500cf787bb71e514eb2904d773ec84bf11d (patch) | |
tree | 72d9186ef739084bd19278b9cccb933b6be94f89 /common/image.c | |
parent | 978226da5eb46bac23695d96a4ce8113b12640d5 (diff) | |
download | u-boot-imx-0ccff500cf787bb71e514eb2904d773ec84bf11d.zip u-boot-imx-0ccff500cf787bb71e514eb2904d773ec84bf11d.tar.gz u-boot-imx-0ccff500cf787bb71e514eb2904d773ec84bf11d.tar.bz2 |
image: Use crc header file instead of C prototypes
We have an existing header which the crc32 definitions, so use it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/image.c')
-rw-r--r-- | common/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/image.c b/common/image.c index ae1a9d3..6afbb40 100644 --- a/common/image.c +++ b/common/image.c @@ -74,6 +74,8 @@ static const image_header_t *image_get_ramdisk(ulong rd_addr, uint8_t arch, #include <image.h> #endif /* !USE_HOSTCC*/ +#include <u-boot/crc.h> + static const table_entry_t uimage_arch[] = { { IH_ARCH_INVALID, NULL, "Invalid ARCH", }, { IH_ARCH_ALPHA, "alpha", "Alpha", }, @@ -160,8 +162,6 @@ static const table_entry_t uimage_comp[] = { { -1, "", "", }, }; -uint32_t crc32(uint32_t, const unsigned char *, uint); -uint32_t crc32_wd(uint32_t, const unsigned char *, uint, uint); #if defined(CONFIG_TIMESTAMP) || defined(CONFIG_CMD_DATE) || defined(USE_HOSTCC) static void genimg_print_time(time_t timestamp); #endif |