]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_spi.c
Merge branch 'master' of git://www.denx.de/git/u-boot-sh
[karo-tx-uboot.git] / common / cmd_spi.c
index 7b6faf79c5a3d3863b47623e9436192b9e08a048..76044221416c9fbd194828b6f4c6bd35fdd461fd 100644 (file)
@@ -29,8 +29,6 @@
 #include <command.h>
 #include <spi.h>
 
-#if (CONFIG_COMMANDS & CFG_CMD_SPI)
-
 /*-----------------------------------------------------------------------
  * Definitions
  */
@@ -119,7 +117,7 @@ int do_spi (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                printf("Error with the SPI transaction.\n");
                rcode = 1;
        } else {
-               cp = din;
+               cp = (char *)din;
                for(j = 0; j < ((bitlen + 7) / 8); j++) {
                        printf("%02X", *cp++);
                }
@@ -139,5 +137,3 @@ U_BOOT_CMD(
        "<bit_len> - Number of bits to send (base 10)\n"
        "<dout>    - Hexadecimal string that gets sent\n"
 );
-
-#endif /* CFG_CMD_SPI */