diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-27 04:42:26 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2013-02-05 07:58:18 -0500 |
commit | f1e8fc9898fd8ca78b7438d3c2e60028d3ae2a34 (patch) | |
tree | bf9f2cb714c5b6d78d9e9706be6c18c7b4ef2d97 /drivers/spi | |
parent | 72611db0eef21f4456d79ba302af4b34ea384f30 (diff) |
spi/ath79: remove superfluous chip select code
The spi_bitbang driver calls the chipselect function
of the driver from spi_bitbang_setup in order to
deselect the given SPI chip, so we don't have to
initialize the CS line here.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-ath79.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c index d4b8e1236612..a725e62dfa90 100644 --- a/drivers/spi/spi-ath79.c +++ b/drivers/spi/spi-ath79.c | |||
@@ -128,12 +128,6 @@ static int ath79_spi_setup_cs(struct spi_device *spi) | |||
128 | gpio_free(cdata->gpio); | 128 | gpio_free(cdata->gpio); |
129 | return status; | 129 | return status; |
130 | } | 130 | } |
131 | } else { | ||
132 | if (spi->mode & SPI_CS_HIGH) | ||
133 | sp->ioc_base |= AR71XX_SPI_IOC_CS0; | ||
134 | else | ||
135 | sp->ioc_base &= ~AR71XX_SPI_IOC_CS0; | ||
136 | ath79_spi_wr(sp, AR71XX_SPI_REG_IOC, sp->ioc_base); | ||
137 | } | 131 | } |
138 | 132 | ||
139 | return 0; | 133 | return 0; |