summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-06-07 12:06:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-06-08 09:47:40 +0100
commite89b6747058748f0190a6852f53d65a7e79f4a9f (patch)
treeb137d2c4d4c2bb34d7ede43d5a42e280f6735f41
parent065792ad0dc0ae5762ad0420edf9f2ac198015ac (diff)
downloadop-kernel-dev-e89b6747058748f0190a6852f53d65a7e79f4a9f.zip
op-kernel-dev-e89b6747058748f0190a6852f53d65a7e79f4a9f.tar.gz
staging: iio: spear_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: Stefan Roese <sr@denx.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r--drivers/staging/iio/adc/spear_adc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/iio/adc/spear_adc.c b/drivers/staging/iio/adc/spear_adc.c
index 25a06cb..736219c 100644
--- a/drivers/staging/iio/adc/spear_adc.c
+++ b/drivers/staging/iio/adc/spear_adc.c
@@ -415,11 +415,13 @@ static int spear_adc_remove(struct platform_device *pdev)
return 0;
}
+#ifdef CONFIG_OF
static const struct of_device_id spear_adc_dt_ids[] = {
{ .compatible = "st,spear600-adc", },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, spear_adc_dt_ids);
+#endif
static struct platform_driver spear_adc_driver = {
.probe = spear_adc_probe,
OpenPOWER on IntegriCloud