summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-13 23:41:59 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 10:36:48 -0600
commit44ba6b0eccb37dd98becece22632bcc5e5cd2fbe (patch)
treef44659cc8988e72628d41f8c750a3998d819c964 /drivers/spi
parenta666f39e4edc2eb6296d7401aab2706d6ae7f459 (diff)
downloadblackbird-obmc-uboot-44ba6b0eccb37dd98becece22632bcc5e5cd2fbe.tar.gz
blackbird-obmc-uboot-44ba6b0eccb37dd98becece22632bcc5e5cd2fbe.zip
dm: spi: Remove SPI_INIT feature
This feature provides for init of a single SPI port for the soft SPI feature. It is not really compatible with driver model since it assumes a single SPI port. Also, inserting SPI init into the driver by means of a #define is not very nice. This feature is not used by any active boards, so let's remove it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/soft_spi_legacy.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/spi/soft_spi_legacy.c b/drivers/spi/soft_spi_legacy.c
index c969be31eb..941daa730b 100644
--- a/drivers/spi/soft_spi_legacy.c
+++ b/drivers/spi/soft_spi_legacy.c
@@ -42,11 +42,6 @@ static inline struct soft_spi_slave *to_soft_spi(struct spi_slave *slave)
*/
void spi_init (void)
{
-#ifdef SPI_INIT
- volatile immap_t *immr = (immap_t *)CONFIG_SYS_IMMR;
-
- SPI_INIT;
-#endif
}
struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
OpenPOWER on IntegriCloud