raspberrypi/linux — pull request #297 by hutorny (2013-05-13 07:46:05+00:00)
Title: Update bcm2708.c to use CONFIG_BCM2708_SPIDEV rather than CONFIG_SPI

Current implementation of bcm2708.c unconditionally binds spare SPI chip selects to the spidev driver. Users who needs SPI bus for other needs have to patch the kernel.
Proposed solution introduces new configuration option CONFIG_BCM2708_SPIDEV
that turns off SPI binding in the kernel.
There is a similar pull request: https://github.com/raspberrypi/linux/pull/274
that proposes using CONFIG_SPI_SPIDEV for this purposes. Such approach, however, not suitable for users that needs both spidev and another spi driver with the same kernel. Therefore, I think, it is better to have a separate config option that would control only definition and registration of bcm2708_spi_devices.