]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: iio: spear_adc: Add missing CONFIG_OF macro
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 7 Jun 2013 11:06:00 +0000 (12:06 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 8 Jun 2013 08:47:40 +0000 (09:47 +0100)
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>
drivers/staging/iio/adc/spear_adc.c

index 25a06cbe16c02264c7693af157cf81a5953e3158..736219c30308f4c0c433f080a82ff1a00a09023b 100644 (file)
@@ -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,