spi: Remove used spi_init
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 20 Nov 2018 08:02:04 +0000 (09:02 +0100)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 27 Nov 2018 15:36:53 +0000 (21:06 +0530)
spi_init used in some areas in tree, but the respective
drivers will remove in future patches.

So remove the same instances.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
common/board_f.c
doc/driver-model/spi-howto.txt
examples/standalone/atmel_df_pow2.c
include/_exports.h

index f1a1432..60634e5 100644 (file)
@@ -23,7 +23,6 @@
 #include <os.h>
 #include <post.h>
 #include <relocate.h>
-#include <spi.h>
 #include <status_led.h>
 #include <sysreset.h>
 #include <timer.h>
@@ -262,7 +261,6 @@ __weak int init_func_vid(void)
 static int init_func_spi(void)
 {
        puts("SPI:   ");
-       spi_init();
        puts("ready\n");
        return 0;
 }
index 1955ffe..38c26f6 100644 (file)
@@ -163,11 +163,6 @@ At this point you should be able to build U-Boot for your board with the
 empty SPI driver. You still have empty methods in your driver, but we will
 write these one by one.
 
-If you have spi_init() functions or the like that are called from your
-board then the build will fail. Remove these calls and make a note of the
-init that needs to be done.
-
-
 7. Set up your platform data structure
 
 This will hold the information your driver to operate, like its hardware
index 2e14aba..b7bd243 100644 (file)
@@ -126,8 +126,6 @@ int atmel_df_pow2(int argc, char * const argv[])
                return 1;
        }
 
-       spi_init();
-
        while (1) {
                struct spi_slave *slave;
                char *line, *p;
index 5416041..c15050e 100644 (file)
 #endif
 
 #if !defined(CONFIG_CMD_SPI) || defined(CONFIG_DM_SPI)
-       EXPORT_FUNC(dummy, void, spi_init, void)
        EXPORT_FUNC(dummy, void, spi_setup_slave, void)
        EXPORT_FUNC(dummy, void, spi_free_slave, void)
 #else
-       EXPORT_FUNC(spi_init, void, spi_init, void)
        EXPORT_FUNC(spi_setup_slave, struct spi_slave *, spi_setup_slave,
                    unsigned int, unsigned int, unsigned int, unsigned int)
        EXPORT_FUNC(spi_free_slave, void, spi_free_slave, struct spi_slave *)