mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
ddeb64f36d
commit
00738ff666
1 changed files with 2 additions and 0 deletions
|
@ -774,11 +774,13 @@ static int at91_adc_remove(struct platform_device *pdev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_OF
|
||||||
static const struct of_device_id at91_adc_dt_ids[] = {
|
static const struct of_device_id at91_adc_dt_ids[] = {
|
||||||
{ .compatible = "atmel,at91sam9260-adc" },
|
{ .compatible = "atmel,at91sam9260-adc" },
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(of, at91_adc_dt_ids);
|
MODULE_DEVICE_TABLE(of, at91_adc_dt_ids);
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct platform_driver at91_adc_driver = {
|
static struct platform_driver at91_adc_driver = {
|
||||||
.probe = at91_adc_probe,
|
.probe = at91_adc_probe,
|
||||||
|
|
Loading…
Reference in a new issue