]> git.sur5r.net Git - u-boot/blobdiff - cpu/mpc8xx/spi.c
Merge with /home/sr/git/u-boot
[u-boot] / cpu / mpc8xx / spi.c
index 9213d101a72d20511ccbec5441f850b07de1de3c..e318ed0d298aefa9bc84c0ee4e27d0a2a1522083 100644 (file)
@@ -525,11 +525,11 @@ int spi_post_test (int flags)
 
        for (i = 0; i < TEST_NUM; i++) {
                for (l = TEST_MIN_LENGTH; l <= TEST_MAX_LENGTH; l += 8) {
-                       packet_fill (txbuf, l);
+                       packet_fill ((char *)txbuf, l);
 
                        spi_xfer (l);
 
-                       if (packet_check (rxbuf, l) < 0) {
+                       if (packet_check ((char *)rxbuf, l) < 0) {
                                goto Done;
                        }
                }