linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CONFIG_OF vs DMA_OF
@ 2015-08-21  5:35 Kuninori Morimoto
  2015-08-21  8:26 ` Vinod Koul
  0 siblings, 1 reply; 12+ messages in thread
From: Kuninori Morimoto @ 2015-08-21  5:35 UTC (permalink / raw)
  To: Vinod Koul, Dan Williams; +Cc: dmaengine, linux-kernel


Hi Vinod

${LINUX}/drivers/dma/of-dma.c will be compiled if .config has DMA_OF

	obj-$(CONFIG_DMA_OF) += of-dma.o

But, ${LINUX}/include/linux/of_dma.h is based on CONFIG_OF

	#ifdef CONFIG_OF
	extern int of_dma_controller_register(struct device_node *np,
	...
	#else
	static inline int of_dma_controller_register(struct device_node *np,
	...
	#endif

I have issue if .config has CONFIG_OF but not have DMA_OF.
Is this correct patch ?

---------------------------------
diff --git a/include/linux/of_dma.h b/include/linux/of_dma.h
index 98ba752..9440622 100644
--- a/include/linux/of_dma.h
+++ b/include/linux/of_dma.h
@@ -34,7 +34,7 @@ struct of_dma_filter_info {
        dma_filter_fn   filter_fn;
 };
 
-#ifdef CONFIG_OF
+#ifdef DMA_OF
 extern int of_dma_controller_register(struct device_node *np,
                struct dma_chan *(*of_dma_xlate)
                (struct of_phandle_args *, struct of_dma *),
---------------------------------


Best regards
---
Kuninori Morimoto

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-10-02  0:33 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-21  5:35 CONFIG_OF vs DMA_OF Kuninori Morimoto
2015-08-21  8:26 ` Vinod Koul
2015-08-21 11:47   ` [PATCH 0/2] " Kuninori Morimoto
2015-08-21 11:48     ` [PATCH 1/2] dmaengine: OF DMAEngine API based on CONFIG_DMA_OF instead of CONFIG_OF Kuninori Morimoto
2015-08-24  9:19       ` Vinod Koul
2015-08-25  0:15         ` Kuninori Morimoto
2015-09-10  8:26           ` [alsa-devel] " Kuninori Morimoto
2015-09-16  1:37             ` Kuninori Morimoto
2015-09-28  8:43             ` Kuninori Morimoto
2015-10-01  2:10             ` Vinod Koul
2015-10-02  0:33               ` Kuninori Morimoto
2015-08-21 11:49     ` [PATCH 2/2] ASoC: rsnd: SND_SOC_RCAR doesn't depend on DMA_OF Kuninori Morimoto

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).