aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-4.1/0095-bcm2708-spi-Don-t-use-static-pin-configuration-with-.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-02-25 10:14:05 +0000
committerJohn Crispin <john@openwrt.org>2016-02-25 10:14:05 +0000
commit0834f9f07631a8857a96614e37cb21e1dc84ffb4 (patch)
treec62e777de69d8397ed7870991bc46d5648a20046 /target/linux/brcm2708/patches-4.1/0095-bcm2708-spi-Don-t-use-static-pin-configuration-with-.patch
parentb3dc9566a46efa67951ff6ae28e4397da9db92af (diff)
downloadupstream-0834f9f07631a8857a96614e37cb21e1dc84ffb4.tar.gz
upstream-0834f9f07631a8857a96614e37cb21e1dc84ffb4.tar.bz2
upstream-0834f9f07631a8857a96614e37cb21e1dc84ffb4.zip
brcm2708: remove linux 4.1 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 48766
Diffstat (limited to 'target/linux/brcm2708/patches-4.1/0095-bcm2708-spi-Don-t-use-static-pin-configuration-with-.patch')
-rw-r--r--target/linux/brcm2708/patches-4.1/0095-bcm2708-spi-Don-t-use-static-pin-configuration-with-.patch39
1 files changed, 0 insertions, 39 deletions
diff --git a/target/linux/brcm2708/patches-4.1/0095-bcm2708-spi-Don-t-use-static-pin-configuration-with-.patch b/target/linux/brcm2708/patches-4.1/0095-bcm2708-spi-Don-t-use-static-pin-configuration-with-.patch
deleted file mode 100644
index 8165f2e6a9..0000000000
--- a/target/linux/brcm2708/patches-4.1/0095-bcm2708-spi-Don-t-use-static-pin-configuration-with-.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 76d4203cdc524d7abd00df1cecc604848fdcaf6d Mon Sep 17 00:00:00 2001
-From: Phil Elwell <phil@raspberrypi.org>
-Date: Mon, 15 Jun 2015 09:59:38 +0100
-Subject: [PATCH 095/222] bcm2708-spi: Don't use static pin configuration with
- DT
-
-Also remove superfluous error checking - the SPI framework ensures the
-validity of the chip_select value.
----
- drivers/spi/spi-bcm2708.c | 11 ++---------
- 1 file changed, 2 insertions(+), 9 deletions(-)
-
---- a/drivers/spi/spi-bcm2708.c
-+++ b/drivers/spi/spi-bcm2708.c
-@@ -386,14 +386,6 @@ static int bcm2708_spi_setup(struct spi_
- if (bs->stopping)
- return -ESHUTDOWN;
-
-- if (!(spi->mode & SPI_NO_CS) &&
-- (spi->chip_select > spi->master->num_chipselect)) {
-- dev_dbg(&spi->dev,
-- "setup: invalid chipselect %u (%u defined)\n",
-- spi->chip_select, spi->master->num_chipselect);
-- return -EINVAL;
-- }
--
- state = spi->controller_state;
- if (!state) {
- state = kzalloc(sizeof(*state), GFP_KERNEL);
-@@ -496,7 +488,8 @@ static int bcm2708_spi_probe(struct plat
- return PTR_ERR(clk);
- }
-
-- bcm2708_init_pinmode();
-+ if (!pdev->dev.of_node)
-+ bcm2708_init_pinmode();
-
- master = spi_alloc_master(&pdev->dev, sizeof(*bs));
- if (!master) {