aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-3.18/1000-BCM2708-fix-SPIDEV.patch
blob: fa7c21ec7d97d2b60abe6273b5341c853c942c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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