summaryrefslogtreecommitdiff
path: root/target/linux/xburst/patches-2.6.32/400-spi-gpio-3wire.patch
diff options
context:
space:
mode:
authorlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-08-04 13:33:55 +0000
committerlars <lars@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-08-04 13:33:55 +0000
commitcaec700c9a87d1565d4e3e37c5c4ce9a5e51c052 (patch)
tree6421f9d21511111f75385540fee82f61e7c922cd /target/linux/xburst/patches-2.6.32/400-spi-gpio-3wire.patch
parente9a6496d35ba71188790f03ae3339ea2363efcc3 (diff)
[xburst] Drop 2.6.32 patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22485 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/xburst/patches-2.6.32/400-spi-gpio-3wire.patch')
-rw-r--r--target/linux/xburst/patches-2.6.32/400-spi-gpio-3wire.patch46
1 files changed, 0 insertions, 46 deletions
diff --git a/target/linux/xburst/patches-2.6.32/400-spi-gpio-3wire.patch b/target/linux/xburst/patches-2.6.32/400-spi-gpio-3wire.patch
deleted file mode 100644
index fff18531c0..0000000000
--- a/target/linux/xburst/patches-2.6.32/400-spi-gpio-3wire.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-From df07ed6a52d9f6027ff1753c00b3128fa18dde31 Mon Sep 17 00:00:00 2001
-From: Lars-Peter Clausen <lars@metafoo.de>
-Date: Mon, 11 Jan 2010 04:29:48 +0100
-Subject: [PATCH] /opt/Projects/openwrt/target/linux/xburst/patches-2.6.31/400-spi-gpio-3wire.patch
-
----
- drivers/spi/spi_gpio.c | 14 +++++++++-----
- 1 files changed, 9 insertions(+), 5 deletions(-)
-
---- a/drivers/spi/spi_gpio.c
-+++ b/drivers/spi/spi_gpio.c
-@@ -254,9 +254,11 @@ spi_gpio_request(struct spi_gpio_platfor
- if (value)
- goto done;
-
-- value = spi_gpio_alloc(SPI_MISO_GPIO, label, true);
-- if (value)
-- goto free_mosi;
-+ if (SPI_MISO_GPIO != SPI_MOSI_GPIO) {
-+ value = spi_gpio_alloc(SPI_MISO_GPIO, label, true);
-+ if (value)
-+ goto free_mosi;
-+ }
-
- value = spi_gpio_alloc(SPI_SCK_GPIO, label, false);
- if (value)
-@@ -319,7 +321,8 @@ static int __devinit spi_gpio_probe(stru
- if (status < 0) {
- spi_master_put(spi_gpio->bitbang.master);
- gpio_free:
-- gpio_free(SPI_MISO_GPIO);
-+ if (SPI_MISO_GPIO != SPI_MOSI_GPIO)
-+ gpio_free(SPI_MISO_GPIO);
- gpio_free(SPI_MOSI_GPIO);
- gpio_free(SPI_SCK_GPIO);
- spi_master_put(master);
-@@ -343,7 +346,8 @@ static int __devexit spi_gpio_remove(str
-
- platform_set_drvdata(pdev, NULL);
-
-- gpio_free(SPI_MISO_GPIO);
-+ if (SPI_MISO_GPIO != SPI_MOSI_GPIO)
-+ gpio_free(SPI_MISO_GPIO);
- gpio_free(SPI_MOSI_GPIO);
- gpio_free(SPI_SCK_GPIO);
-