* [PATCH 1/1] iio: at91_adc: Add missing CONFIG_OF macro
@ 2013-05-23 5:26 Sachin Kamat
2013-05-23 14:55 ` Maxime Ripard
0 siblings, 1 reply; 3+ messages in thread
From: Sachin Kamat @ 2013-05-23 5:26 UTC (permalink / raw)
To: linux-iio; +Cc: jic23, jic23, sachin.kamat, Maxime Ripard
The data structure is required only when DT is enabled.
Hence compile it conditionally.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
---
drivers/iio/adc/at91_adc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c
index e5b88d5..b6db6a0 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,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] iio: at91_adc: Add missing CONFIG_OF macro
2013-05-23 5:26 [PATCH 1/1] iio: at91_adc: Add missing CONFIG_OF macro Sachin Kamat
@ 2013-05-23 14:55 ` Maxime Ripard
2013-06-02 16:43 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Maxime Ripard @ 2013-05-23 14:55 UTC (permalink / raw)
To: Sachin Kamat; +Cc: linux-iio, jic23, jic23
Hi Sachin,
On Thu, May 23, 2013 at 10:56:27AM +0530, Sachin Kamat wrote:
> The data structure is required only when DT is enabled.
> Hence compile it conditionally.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] iio: at91_adc: Add missing CONFIG_OF macro
2013-05-23 14:55 ` Maxime Ripard
@ 2013-06-02 16:43 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2013-06-02 16:43 UTC (permalink / raw)
To: Maxime Ripard; +Cc: Sachin Kamat, linux-iio
On 05/23/2013 03:55 PM, Maxime Ripard wrote:
> Hi Sachin,
>
> On Thu, May 23, 2013 at 10:56:27AM +0530, Sachin Kamat wrote:
>> The data structure is required only when DT is enabled.
>> Hence compile it conditionally.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>> Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
>
> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> Thanks!
>
> Maxime
>
Applied to togreg branch of iio.git.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-02 16:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-23 5:26 [PATCH 1/1] iio: at91_adc: Add missing CONFIG_OF macro Sachin Kamat
2013-05-23 14:55 ` Maxime Ripard
2013-06-02 16:43 ` Jonathan Cameron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).