summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-02-13 07:38:33 +0000
committerJohn Crispin <john@openwrt.org>2015-02-13 07:38:33 +0000
commit0d369987957e88b7910c311c6a00fc07db8f55d4 (patch)
tree9a549fdbfe6d4e887606ae60fd30db1688fc3006 /target
parent9b74de00f7b35427bbea34c5d59d6f05fc0e3a8f (diff)
downloadmtk-20170518-0d369987957e88b7910c311c6a00fc07db8f55d4.zip
mtk-20170518-0d369987957e88b7910c311c6a00fc07db8f55d4.tar.gz
mtk-20170518-0d369987957e88b7910c311c6a00fc07db8f55d4.tar.bz2
brcm2708: fix spidev
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 44434
Diffstat (limited to 'target')
-rw-r--r--target/linux/brcm2708/patches-3.18/1000-BCM2708-fix-SPIDEV.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-3.18/1000-BCM2708-fix-SPIDEV.patch b/target/linux/brcm2708/patches-3.18/1000-BCM2708-fix-SPIDEV.patch
new file mode 100644
index 0000000..fa7c21e
--- /dev/null
+++ b/target/linux/brcm2708/patches-3.18/1000-BCM2708-fix-SPIDEV.patch
@@ -0,0 +1,36 @@
+--- a/arch/arm/mach-bcm2708/bcm2708.c
++++ b/arch/arm/mach-bcm2708/bcm2708.c
+@@ -559,7 +559,6 @@ static struct platform_device bcm2708_sp
+
+ #ifdef CONFIG_BCM2708_SPIDEV
+ static struct spi_board_info bcm2708_spi_devices[] = {
+-#ifdef CONFIG_SPI_SPIDEV
+ {
+ .modalias = "spidev",
+ .max_speed_hz = 500000,
+@@ -573,7 +572,6 @@ static struct spi_board_info bcm2708_spi
+ .chip_select = 1,
+ .mode = SPI_MODE_0,
+ }
+-#endif
+ };
+ #endif
+
+--- a/arch/arm/mach-bcm2709/bcm2709.c
++++ b/arch/arm/mach-bcm2709/bcm2709.c
+@@ -581,7 +581,6 @@ static struct platform_device bcm2708_sp
+
+ #ifdef CONFIG_BCM2708_SPIDEV
+ static struct spi_board_info bcm2708_spi_devices[] = {
+-#ifdef CONFIG_SPI_SPIDEV
+ {
+ .modalias = "spidev",
+ .max_speed_hz = 500000,
+@@ -595,7 +594,6 @@ static struct spi_board_info bcm2708_spi
+ .chip_select = 1,
+ .mode = SPI_MODE_0,
+ }
+-#endif
+ };
+ #endif
+