]> git.sur5r.net Git - u-boot/commitdiff
[new uImage] Fix build problems on trab board
authorMarian Balakowicz <m8@semihalf.com>
Wed, 12 Mar 2008 09:35:51 +0000 (10:35 +0100)
committerMarian Balakowicz <m8@semihalf.com>
Wed, 12 Mar 2008 09:35:51 +0000 (10:35 +0100)
Signed-off-by: Marian Balakowicz <m8@semihalf.com>
board/trab/auto_update.c

index fa08bffecd1d9f7aad65114ab7842a5b99f5eb1b..5311e1244794424e585ffcfa2122a201727dd1d2 100644 (file)
@@ -224,7 +224,7 @@ au_check_cksum_valid(int idx, long nbytes)
                return -1;
        }
        /* check the data CRC */
-       if (!image_check_dcrc (hdr)) {
+       if (!image_check_dcrc (hdr))
        {
                printf ("Image %s bad data checksum\n", aufile[idx]);
                return -1;
@@ -284,7 +284,7 @@ au_check_header_valid(int idx, long nbytes)
                return -1;
        }
        if ((idx == IDX_APP) && !image_check_type (hdr, IH_TYPE_RAMDISK)
-           && !image_check_type (hdr, FILESYSTEM)) {
+               && !image_check_type (hdr, IH_TYPE_FILESYSTEM)) {
                printf ("Image %s wrong type\n", aufile[idx]);
                return -1;
        }