diff options
author | Gabe Black <gabeblack@chromium.org> | 2011-08-04 14:00:56 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:59:27 -0700 |
commit | 24b9bc34ffc2d05e3a536d41e70f28d3d028a8ec (patch) | |
tree | b98a4162be5c8ad307923e62828dfaeca85e1c53 /drivers | |
parent | dfd1e1d66bd1f59b5ac8e154921d1cedfcdcf222 (diff) |
Remove the now unused dummy SPI driver
BUG=chrome-os-partner:4722
TEST=Built on x86-alex and tegra2_kaen, used grep to look for any other use of
the driver
Change-Id: I59abfd1a1a1c2bbd7b333d1095077f647ac571a7
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/5382
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/Makefile | 1 | ||||
-rw-r--r-- | drivers/spi/dummy_spi.c | 69 |
2 files changed, 0 insertions, 70 deletions
diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile index ca30af607b..b6911c29f6 100644 --- a/drivers/spi/Makefile +++ b/drivers/spi/Makefile @@ -46,7 +46,6 @@ COBJS-$(CONFIG_TEGRA2_SPI) += tegra2_spi_new.o else COBJS-$(CONFIG_TEGRA2_SPI) += tegra2_spi.o endif -COBJS-$(CONFIG_DUMMY_SPI) += dummy_spi.o COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c) diff --git a/drivers/spi/dummy_spi.c b/drivers/spi/dummy_spi.c deleted file mode 100644 index df539055ad..0000000000 --- a/drivers/spi/dummy_spi.c +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - * - * Alternatively, this software may be distributed under the terms of the - * GNU General Public License ("GPL") version 2 as published by the Free - * Software Foundation. - */ - -#include <common.h> - -#include <spi.h> - -int spi_cs_is_valid(unsigned int bus, unsigned int cs) -{ - printf("spi_cs_is_valid used but not implemented.\n"); - return 0; -} - -struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, - unsigned int max_hz, unsigned int mode) -{ - printf("spi_setup_slave used but not implemented.\n"); - return NULL; -} - -void spi_free_slave(struct spi_slave *slave) -{ - printf("spi_free_slave used but not implemented.\n"); -} - -void spi_init(void) -{ - printf("spi_init used but not implemented.\n"); -} - -int spi_claim_bus(struct spi_slave *slave) -{ - printf("spi_claim_bus used but not implemented.\n"); - return 0; -} - -void spi_release_bus(struct spi_slave *slave) -{ - printf("spi_release_bus used but not implemented.\n"); -} - -void spi_cs_activate(struct spi_slave *slave) -{ - printf("spi_cs_activate used but not implemented.\n"); -} - -void spi_cs_deactivate(struct spi_slave *slave) -{ - printf("spi_cs_deactivate used but not implemented.\n"); -} - -#ifdef CONFIG_NEW_SPI_XFER -int spi_xfer(struct spi_slave *slave, const void *dout, unsigned int bitsout, - void *din, unsigned int bitsin) -#else -int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, - void *din, unsigned long flags) -#endif -{ - printf("spi_xfer used but not implemented.\n"); - return 0; -} |