summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-23 06:26:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-06-04 18:29:49 +0100
commit00738ff6660c74816300ccca3f3d29ffe24ae733 (patch)
treed7b944f0464e24f1db7f03a9831d661227123d71 /drivers
parentddeb64f36d2a1333927e273856d545767ee70a1c (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')
-rw-r--r--drivers/iio/adc/at91_adc.c2
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)
return 0;
}
+#ifdef CONFIG_OF
static const struct of_device_id at91_adc_dt_ids[] = {
{ .compatible = "atmel,at91sam9260-adc" },
{},
};
MODULE_DEVICE_TABLE(of, at91_adc_dt_ids);
+#endif
static struct platform_driver at91_adc_driver = {
.probe = at91_adc_probe,