[OpenWrt-Devel] [PATCH 4/5] brcm2708: fix spidev

Álvaro Fernández Rojas noltari at gmail.com
Thu Feb 12 10:43:30 EST 2015


Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 .../patches-3.18/1000-BCM2708-fix-SPIDEV.patch     | 36 ++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 target/linux/brcm2708/patches-3.18/1000-BCM2708-fix-SPIDEV.patch

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
+ 
-- 
1.8.3.2
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list