iio: adc: Kconfig: exynos_adc depends on CONFIG_OF
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Fri, 15 Mar 2013 16:23:00 +0000 (16:23 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sun, 17 Mar 2013 20:11:15 +0000 (20:11 +0000)
As the exynos_adc driver only supports device tree registration.
Making driver depend on CONFIG_OF solves possible errors during probe.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig

index a40d3c29f0cb8ec34ea15b92f7ebd8df97f962e3..9c45c0f3f127a4c8030f8002d0ad089a1c990c1e 100644 (file)
@@ -105,6 +105,7 @@ config AT91_ADC
 
 config EXYNOS_ADC
        bool "Exynos ADC driver support"
+       depends on OF
        help
          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