]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board_r: Remove initr_spi
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 21 Nov 2018 06:44:07 +0000 (12:14 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 27 Nov 2018 15:36:53 +0000 (21:06 +0530)
Drop unused initr_spi, which just return 0, no usage.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
common/board_r.c

index 3ccef5467b990e75f8ef248b2a0f18e9d384bd1a..2f982b1646082fc3efc237dabaaf5a0334b418e0 100644 (file)
@@ -36,7 +36,6 @@
 #include <onenand_uboot.h>
 #include <scsi.h>
 #include <serial.h>
-#include <spi.h>
 #include <stdio_dev.h>
 #include <timer.h>
 #include <trace.h>
@@ -379,13 +378,6 @@ static int initr_flash(void)
 }
 #endif
 
-#if defined(CONFIG_PPC) && !defined(CONFIG_DM_SPI)
-static int initr_spi(void)
-{
-       return 0;
-}
-#endif
-
 #ifdef CONFIG_CMD_NAND
 /* go init the NAND */
 static int initr_nand(void)
@@ -736,9 +728,6 @@ static init_fnc_t init_sequence_r[] = {
        /* initialize higher level parts of CPU like time base and timers */
        cpu_init_r,
 #endif
-#ifdef CONFIG_PPC
-       initr_spi,
-#endif
 #ifdef CONFIG_CMD_NAND
        initr_nand,
 #endif