* [PATCH 1/1] staging: iio: spear_adc: Add missing CONFIG_OF macro
@ 2013-06-07 11:06 Sachin Kamat
2013-06-07 11:24 ` Stefan Roese
0 siblings, 1 reply; 3+ messages in thread
From: Sachin Kamat @ 2013-06-07 11:06 UTC (permalink / raw)
To: devel; +Cc: linux-iio, gregkh, jic23, sachin.kamat, jic23, Stefan Roese
The data structure is required only when DT is enabled.
Hence compile it conditionally.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Stefan Roese <sr@denx.de>
---
drivers/staging/iio/adc/spear_adc.c | 2 ++
1 file changed, 2 insertions(+)
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,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] staging: iio: spear_adc: Add missing CONFIG_OF macro
2013-06-07 11:06 [PATCH 1/1] staging: iio: spear_adc: Add missing CONFIG_OF macro Sachin Kamat
@ 2013-06-07 11:24 ` Stefan Roese
2013-06-08 8:48 ` Jonathan Cameron
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Roese @ 2013-06-07 11:24 UTC (permalink / raw)
To: Sachin Kamat; +Cc: devel, linux-iio, gregkh, jic23, jic23
On 06/07/2013 01:06 PM, 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: Stefan Roese <sr@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] staging: iio: spear_adc: Add missing CONFIG_OF macro
2013-06-07 11:24 ` Stefan Roese
@ 2013-06-08 8:48 ` Jonathan Cameron
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2013-06-08 8:48 UTC (permalink / raw)
To: Stefan Roese; +Cc: Sachin Kamat, devel, linux-iio, gregkh, jic23
On 06/07/2013 12:24 PM, Stefan Roese wrote:
> On 06/07/2013 01:06 PM, 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: Stefan Roese <sr@denx.de>
>
> Acked-by: Stefan Roese <sr@denx.de>
>
> Thanks,
> Stefan
Applied to the togreg branch of iio.git
Thanks,
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-08 8:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-07 11:06 [PATCH 1/1] staging: iio: spear_adc: Add missing CONFIG_OF macro Sachin Kamat
2013-06-07 11:24 ` Stefan Roese
2013-06-08 8:48 ` 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).