summaryrefslogtreecommitdiff
path: root/drivers/staging/pi433/Kconfig
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2017-07-19 16:58:28 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-28 16:55:40 -0700
commit0119a48b69feae3331c26a041445d3f2992b6b39 (patch)
treec9abf8082acc7e41a2748478042af05e081eb377 /drivers/staging/pi433/Kconfig
parent39ae5f1e4b86333b2ca97a278a93640d61fcf77d (diff)
staging: pi433: depends on SPI
The pi433 driver uses SPI interfaces so it should depend on SPI. Also, the "default n" can be removed since that is already the default. Fixes these build errors when SPI is not enabled: drivers/staging/pi433/pi433_if.o: In function `pi433_probe': pi433_if.c:(.text+0x1135): undefined reference to `spi_setup' pi433_if.c:(.text+0x1177): undefined reference to `spi_write_then_read' drivers/staging/pi433/pi433_if.o: In function `pi433_init': pi433_if.c:(.init.text+0xb8): undefined reference to `__spi_register_driver' drivers/staging/pi433/rf69.o: In function `rf69_read_fifo': rf69.c:(.text+0x102): undefined reference to `spi_sync' drivers/staging/pi433/rf69.o: In function `rf69_write_fifo': rf69.c:(.text+0x248): undefined reference to `spi_sync' drivers/staging/pi433/rf69.o: In function `rf69_read_reg': rf69.c:(.text+0x290): undefined reference to `spi_write_then_read' drivers/staging/pi433/rf69.o: In function `rf69_write_reg': rf69.c:(.text+0x523): undefined reference to `spi_sync' Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Marcus Wolf <linux@wolf-entwicklungen.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/pi433/Kconfig')
-rw-r--r--drivers/staging/pi433/Kconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/pi433/Kconfig b/drivers/staging/pi433/Kconfig
index b2716b85d5af..87c2ee192cca 100644
--- a/drivers/staging/pi433/Kconfig
+++ b/drivers/staging/pi433/Kconfig
@@ -1,6 +1,6 @@
config PI433
tristate "Pi433 - a 433MHz radio module for Raspberry Pi"
- default n
+ depends on SPI
---help---
This option allows you to enable support for the radio module Pi433.