瀏覽代碼

iio: adc: Fix exynos_adc dependencies

EXYNOS_ADC shouldn't only depend on OF. It is useless on architectures
other than Exynos so it should depend on ARCH_EXYNOS (which implies
OF.)

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Jean Delvare 11 年之前
父節點
當前提交
9ef080ec0c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/iio/adc/Kconfig

+ 1 - 1
drivers/iio/adc/Kconfig

@@ -118,7 +118,7 @@ config AT91_ADC
 
 
 config EXYNOS_ADC
 config EXYNOS_ADC
 	bool "Exynos ADC driver support"
 	bool "Exynos ADC driver support"
-	depends on OF
+	depends on ARCH_EXYNOS || (OF && COMPILE_TEST)
 	help
 	help
 	  Core support for the ADC block found in the Samsung EXYNOS series
 	  Core support for the ADC block found in the Samsung EXYNOS series
 	  of SoCs for drivers such as the touchscreen and hwmon to use to share
 	  of SoCs for drivers such as the touchscreen and hwmon to use to share