spi: Remove used spi_init
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>
This commit is contained in:
parent
e2cae51472
commit
fe82ca8f71
@ -23,7 +23,6 @@
|
|||||||
#include <os.h>
|
#include <os.h>
|
||||||
#include <post.h>
|
#include <post.h>
|
||||||
#include <relocate.h>
|
#include <relocate.h>
|
||||||
#include <spi.h>
|
|
||||||
#include <status_led.h>
|
#include <status_led.h>
|
||||||
#include <sysreset.h>
|
#include <sysreset.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
@ -262,7 +261,6 @@ __weak int init_func_vid(void)
|
|||||||
static int init_func_spi(void)
|
static int init_func_spi(void)
|
||||||
{
|
{
|
||||||
puts("SPI: ");
|
puts("SPI: ");
|
||||||
spi_init();
|
|
||||||
puts("ready\n");
|
puts("ready\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -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
|
empty SPI driver. You still have empty methods in your driver, but we will
|
||||||
write these one by one.
|
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
|
7. Set up your platform data structure
|
||||||
|
|
||||||
This will hold the information your driver to operate, like its hardware
|
This will hold the information your driver to operate, like its hardware
|
||||||
|
@ -126,8 +126,6 @@ int atmel_df_pow2(int argc, char * const argv[])
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
spi_init();
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
struct spi_slave *slave;
|
struct spi_slave *slave;
|
||||||
char *line, *p;
|
char *line, *p;
|
||||||
|
@ -50,11 +50,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_CMD_SPI) || defined(CONFIG_DM_SPI)
|
#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_setup_slave, void)
|
||||||
EXPORT_FUNC(dummy, void, spi_free_slave, void)
|
EXPORT_FUNC(dummy, void, spi_free_slave, void)
|
||||||
#else
|
#else
|
||||||
EXPORT_FUNC(spi_init, void, spi_init, void)
|
|
||||||
EXPORT_FUNC(spi_setup_slave, struct spi_slave *, spi_setup_slave,
|
EXPORT_FUNC(spi_setup_slave, struct spi_slave *, spi_setup_slave,
|
||||||
unsigned int, unsigned int, unsigned int, unsigned int)
|
unsigned int, unsigned int, unsigned int, unsigned int)
|
||||||
EXPORT_FUNC(spi_free_slave, void, spi_free_slave, struct spi_slave *)
|
EXPORT_FUNC(spi_free_slave, void, spi_free_slave, struct spi_slave *)
|
||||||
|
Loading…
Reference in New Issue
Block a user