diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2015-05-04 00:16:36 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-04 13:57:36 +0100 |
commit | e0d58cdcaedd90e42162772f9b642e4ee680dd03 (patch) | |
tree | 2247ab7e6bbd8d88284fb677cccf19903bf50993 | |
parent | 5d0fe6362e7d416002ea4ee61bfe3ae6f505e9cc (diff) | |
download | op-kernel-dev-e0d58cdcaedd90e42162772f9b642e4ee680dd03.zip op-kernel-dev-e0d58cdcaedd90e42162772f9b642e4ee680dd03.tar.gz |
spi: bcm2835: depends GPIOLIB
I got following error on CONFIG_GPIOLIB=n.
drivers/spi/spi-bcm2835.c: In function 'chip_match_name':
drivers/spi/spi-bcm2835.c:356:21: error: dereferencing pointer to incomplete type 'struct gpio_chip'
return !strcmp(chip->label, data);
^
drivers/spi/spi-bcm2835.c: In function 'bcm2835_spi_setup':
drivers/spi/spi-bcm2835.c:382:9: error: implicit declaration of function 'gpiochip_find' [-Werror=implicit-function-declaration]
chip = gpiochip_find("pinctrl-bcm2835", chip_match_name);
^
drivers/spi/spi-bcm2835.c:382:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
chip = gpiochip_find("pinctrl-bcm2835", chip_match_name);
^
drivers/spi/spi-bcm2835.c: In function 'chip_match_name':
drivers/spi/spi-bcm2835.c:357:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 198f96b..d5ed2a0 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -77,6 +77,7 @@ config SPI_ATMEL config SPI_BCM2835 tristate "BCM2835 SPI controller" + depends on GPIOLIB depends on ARCH_BCM2835 || COMPILE_TEST help This selects a driver for the Broadcom BCM2835 SPI master. |