brcm2708: fix spidev
[openwrt.git] / target / linux / brcm2708 / patches-3.18 / 1000-BCM2708-fix-SPIDEV.patch
1 --- a/arch/arm/mach-bcm2708/bcm2708.c
2 +++ b/arch/arm/mach-bcm2708/bcm2708.c
3 @@ -559,7 +559,6 @@ static struct platform_device bcm2708_sp
4  
5  #ifdef CONFIG_BCM2708_SPIDEV
6  static struct spi_board_info bcm2708_spi_devices[] = {
7 -#ifdef CONFIG_SPI_SPIDEV
8         {
9                 .modalias = "spidev",
10                 .max_speed_hz = 500000,
11 @@ -573,7 +572,6 @@ static struct spi_board_info bcm2708_spi
12                 .chip_select = 1,
13                 .mode = SPI_MODE_0,
14         }
15 -#endif
16  };
17  #endif
18  
19 --- a/arch/arm/mach-bcm2709/bcm2709.c
20 +++ b/arch/arm/mach-bcm2709/bcm2709.c
21 @@ -581,7 +581,6 @@ static struct platform_device bcm2708_sp
22  
23  #ifdef CONFIG_BCM2708_SPIDEV
24  static struct spi_board_info bcm2708_spi_devices[] = {
25 -#ifdef CONFIG_SPI_SPIDEV
26         {
27                 .modalias = "spidev",
28                 .max_speed_hz = 500000,
29 @@ -595,7 +594,6 @@ static struct spi_board_info bcm2708_spi
30                 .chip_select = 1,
31                 .mode = SPI_MODE_0,
32         }
33 -#endif
34  };
35  #endif
36