1000-BCM2708-fix-SPIDEV.patch 876 B

123456789101112131415161718192021222324252627282930313233343536
  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. #ifdef CONFIG_BCM2708_SPIDEV
  5. static struct spi_board_info bcm2708_spi_devices[] = {
  6. -#ifdef CONFIG_SPI_SPIDEV
  7. {
  8. .modalias = "spidev",
  9. .max_speed_hz = 500000,
  10. @@ -573,7 +572,6 @@ static struct spi_board_info bcm2708_spi
  11. .chip_select = 1,
  12. .mode = SPI_MODE_0,
  13. }
  14. -#endif
  15. };
  16. #endif
  17. --- a/arch/arm/mach-bcm2709/bcm2709.c
  18. +++ b/arch/arm/mach-bcm2709/bcm2709.c
  19. @@ -581,7 +581,6 @@ static struct platform_device bcm2708_sp
  20. #ifdef CONFIG_BCM2708_SPIDEV
  21. static struct spi_board_info bcm2708_spi_devices[] = {
  22. -#ifdef CONFIG_SPI_SPIDEV
  23. {
  24. .modalias = "spidev",
  25. .max_speed_hz = 500000,
  26. @@ -595,7 +594,6 @@ static struct spi_board_info bcm2708_spi
  27. .chip_select = 1,
  28. .mode = SPI_MODE_0,
  29. }
  30. -#endif
  31. };
  32. #endif