ar71xx: preset WLAN LED config on MZK-W300NH
[openwrt.git] / target / linux / ar71xx / patches-3.2 / 203-spi-ath79-remove-superfluous-chip-select-code.patch
1 From 7385ff2cb72d6a0107890760466b9564aa5204c1 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Mon, 9 Jan 2012 15:03:28 +0100
4 Subject: [PATCH 3/7] spi/ath79: remove superfluous chip select code
5
6 The spi_bitbang driver calls the chipselect function
7 of the driver from spi_bitbang_setup in order to
8 deselect the given SPI chip, so we don't have to
9 initialize the CS line here.
10
11 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
12 ---
13 drivers/spi/spi-ath79.c | 6 ------
14 1 files changed, 0 insertions(+), 6 deletions(-)
15
16 --- a/drivers/spi/spi-ath79.c
17 +++ b/drivers/spi/spi-ath79.c
18 @@ -121,12 +121,6 @@ static int ath79_spi_setup_cs(struct spi
19 gpio_free(cdata->gpio);
20 return status;
21 }
22 - } else {
23 - if (spi->mode & SPI_CS_HIGH)
24 - sp->ioc_base |= AR71XX_SPI_IOC_CS0;
25 - else
26 - sp->ioc_base &= ~AR71XX_SPI_IOC_CS0;
27 - ath79_spi_wr(sp, AR71XX_SPI_REG_IOC, sp->ioc_base);
28 }
29
30 return 0;
This page took 0.043728 seconds and 5 git commands to generate.