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/qualcomm/ipq40xx/spi.c | 6 ------ src/soc/qualcomm/ipq806x/spi.c | 6 ------ 2 files changed, 12 deletions(-) (limited to 'src/soc/qualcomm') diff --git a/src/soc/qualcomm/ipq40xx/spi.c b/src/soc/qualcomm/ipq40xx/spi.c index 157903cf50..3dc6022b03 100644 --- a/src/soc/qualcomm/ipq40xx/spi.c +++ b/src/soc/qualcomm/ipq40xx/spi.c @@ -201,12 +201,6 @@ static void spi_reset(struct ipq_spi_slave *ds) static struct ipq_spi_slave spi_slave_pool[2]; -void spi_init(void) -{ - /* just in case */ - memset(spi_slave_pool, 0, sizeof(spi_slave_pool)); -} - static struct ipq_spi_slave *to_ipq_spi(const struct spi_slave *slave) { struct ipq_spi_slave *ds; diff --git a/src/soc/qualcomm/ipq806x/spi.c b/src/soc/qualcomm/ipq806x/spi.c index c20ad9a325..f9a89fcfed 100644 --- a/src/soc/qualcomm/ipq806x/spi.c +++ b/src/soc/qualcomm/ipq806x/spi.c @@ -493,12 +493,6 @@ static const struct gsbi_spi spi_reg[] = { }; static struct ipq_spi_slave spi_slave_pool[2]; -void spi_init() -{ - /* just in case */ - memset(spi_slave_pool, 0, sizeof(spi_slave_pool)); -} - static struct ipq_spi_slave *to_ipq_spi(const struct spi_slave *slave) { struct ipq_spi_slave *ds; -- cgit v1.2.3