summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-test.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-10-05 22:39:37 +0200
committerMark Brown <broonie@kernel.org>2017-10-05 21:57:16 +0100
commite83f374247c310bc558c8626fbfcc03f22f9bf02 (patch)
tree71d5439cdf163c616e7260b07f5550f49f7ba22d /drivers/spi/spi-test.h
parentb0d6e097b922ac7f538623c52794d9d63d6ee378 (diff)
downloadlinux-e83f374247c310bc558c8626fbfcc03f22f9bf02.tar.gz
linux-e83f374247c310bc558c8626fbfcc03f22f9bf02.tar.bz2
linux-e83f374247c310bc558c8626fbfcc03f22f9bf02.zip
spi: spreadtrum adi: add hwspinlock dependency
With CONFIG_HWSPINLOCK=m, the new driver fails to link as a built-in driver: drivers/spi/spi-sprd-adi.o: In function `sprd_adi_remove': spi-sprd-adi.c:(.text+0x18): undefined reference to `hwspin_lock_free' drivers/spi/spi-sprd-adi.o: In function `sprd_adi_probe': spi-sprd-adi.c:(.text+0xfc): undefined reference to `of_hwspin_lock_get_id' spi-sprd-adi.c:(.text+0x108): undefined reference to `hwspin_lock_request_specific' spi-sprd-adi.c:(.text+0x268): undefined reference to `hwspin_lock_free' This adds a hard Kconfig dependency on HWSPINLOCK for the !COMPILE_TEST case, and allows compile-testing with HWSPINLOCK completely disabled, which will then rely on the existing stub API. Fixes: 7e2903cb91df ("spi: Add ADI driver for Spreadtrum platform") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-test.h')
0 files changed, 0 insertions, 0 deletions