From 2dafd897692a257b3727723601ac68f902e746f2 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Sun, 4 Jun 2017 05:53:04 -0700 Subject: spi: Remove unused/unnecessary spi_init function definitions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove spi_init definitions which: 1. Do nothing 2. Set static global variables to 0 Change-Id: If4c0cdbe2271fc7561becd87ad3b96bd45e77430 Signed-off-by: Furquan Shaikh Reviewed-on: https://review.coreboot.org/20039 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Paul Menzel --- src/soc/imgtec/pistachio/spi.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/soc/imgtec') diff --git a/src/soc/imgtec/pistachio/spi.c b/src/soc/imgtec/pistachio/spi.c index bfd982cf62..7e1a7a67f5 100644 --- a/src/soc/imgtec/pistachio/spi.c +++ b/src/soc/imgtec/pistachio/spi.c @@ -410,13 +410,6 @@ static int spim_io(const struct spi_slave *slave, struct spim_buffer *first, return SPIM_OK; } -/* Initialization, must be called once on start up */ -void spi_init(void) -{ - /* Clear everything just in case */ - memset(img_spi_slaves, 0, sizeof(img_spi_slaves)); -} - /* Claim the bus and prepare it for communication */ static int spi_ctrlr_claim_bus(const struct spi_slave *slave) { -- cgit v1.2.3