diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-23 01:26:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-06-04 13:29:49 -0400 |
commit | 00738ff6660c74816300ccca3f3d29ffe24ae733 (patch) | |
tree | d7b944f0464e24f1db7f03a9831d661227123d71 /drivers/iio/adc | |
parent | ddeb64f36d2a1333927e273856d545767ee70a1c (diff) |
iio: at91_adc: Add missing CONFIG_OF macro
The data structure is required only when DT is enabled.
Hence compile it conditionally.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r-- | drivers/iio/adc/at91_adc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index e5b88d5d3b59..b6db6a0e09cd 100644 --- a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c | |||
@@ -774,11 +774,13 @@ static int at91_adc_remove(struct platform_device *pdev) | |||
774 | return 0; | 774 | return 0; |
775 | } | 775 | } |
776 | 776 | ||
777 | #ifdef CONFIG_OF | ||
777 | static const struct of_device_id at91_adc_dt_ids[] = { | 778 | static const struct of_device_id at91_adc_dt_ids[] = { |
778 | { .compatible = "atmel,at91sam9260-adc" }, | 779 | { .compatible = "atmel,at91sam9260-adc" }, |
779 | {}, | 780 | {}, |
780 | }; | 781 | }; |
781 | MODULE_DEVICE_TABLE(of, at91_adc_dt_ids); | 782 | MODULE_DEVICE_TABLE(of, at91_adc_dt_ids); |
783 | #endif | ||
782 | 784 | ||
783 | static struct platform_driver at91_adc_driver = { | 785 | static struct platform_driver at91_adc_driver = { |
784 | .probe = at91_adc_probe, | 786 | .probe = at91_adc_probe, |