]> git.sur5r.net Git - u-boot/blobdiff - board/barco/barco.c
Merge with /home/hs/U-Boot/u-boot-dev
[u-boot] / board / barco / barco.c
index 613e72274c8dfc18e5170f110950fcbc8ea68bdc..becbd0abda623cd85271acc8725cc80cc6d23f6f 100644 (file)
@@ -174,7 +174,7 @@ unsigned update_flash (unsigned char *buf)
        switch ((*buf) & 0x3) {
        case TRY_WORKING:
                printf ("found 3 and converted it to 2\n");
-               write_flash (buf, (*buf) & 0xFE);
+               write_flash ((char *)buf, (*buf) & 0xFE);
                *((unsigned char *)0xFF800000) = 0xF0;
                udelay (100);
                printf ("buf [%#010x] %#010x\n", buf, (*buf));