colibri_imx6: fix video stdout in default environment
[oweals/u-boot.git] / examples / standalone / atmel_df_pow2.c
index db0cd693a997f8a05e5cad5cdc7d11ed83506b67..9c74f4994b95422159c0bcd5c49fc6cd04c2e18a 100644 (file)
@@ -8,6 +8,8 @@
 
 #include <common.h>
 #include <exports.h>
+#include <spi.h>
+#include <linux/delay.h>
 
 #define CMD_ID    0x9f
 #define CMD_STAT  0xd7
@@ -114,7 +116,7 @@ static char *getline(void)
        }
 }
 
-int atmel_df_pow2(int argc, char *argv[])
+int atmel_df_pow2(int argc, char *const argv[])
 {
        /* Print the ABI version */
        app_startup(argv);
@@ -125,8 +127,6 @@ int atmel_df_pow2(int argc, char *argv[])
                return 1;
        }
 
-       spi_init();
-
        while (1) {
                struct spi_slave *slave;
                char *line, *p;