]> git.sur5r.net Git - u-boot/blobdiff - drivers/spi/soft_spi_legacy.c
net: zynq_gem: Initialize val variable in zynq_gem_miiphy_read()
[u-boot] / drivers / spi / soft_spi_legacy.c
index c969be31eb31828066e2c044c825529d6412db69..0aac0c065daa5442630ba29289b5cdfea04503fd 100644 (file)
@@ -1,11 +1,10 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2002
  * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com.
  *
  * Influenced by code from:
  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -42,11 +41,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,