summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/ipq40xx/spi.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-06-04 05:53:04 -0700
committerFurquan Shaikh <furquan@google.com>2017-06-07 22:49:37 +0200
commit2dafd897692a257b3727723601ac68f902e746f2 (patch)
tree803b1e41431de0f5b5ad8fb87078348f76664596 /src/soc/qualcomm/ipq40xx/spi.c
parent5677e7da4b272608091a6bbce3c4584fb49da9f3 (diff)
downloadcoreboot-2dafd897692a257b3727723601ac68f902e746f2.tar.xz
spi: Remove unused/unnecessary spi_init function definitions
Remove spi_init definitions which: 1. Do nothing 2. Set static global variables to 0 Change-Id: If4c0cdbe2271fc7561becd87ad3b96bd45e77430 Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/20039 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/soc/qualcomm/ipq40xx/spi.c')
-rw-r--r--src/soc/qualcomm/ipq40xx/spi.c6
1 files changed, 0 insertions, 6 deletions
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;