From: Sachin Kamat Date: Thu, 23 May 2013 05:26:00 +0000 (+0100) Subject: iio: at91_adc: Add missing CONFIG_OF macro X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=00738ff6660c74816300ccca3f3d29ffe24ae733;p=linux-beck.git 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 Acked-by: Maxime Ripard Signed-off-by: Jonathan Cameron --- 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,