Thread (14 messages) 14 messages, 5 authors, 2014-01-23

Re: [PATCH v2 1/2] dmaengine: add Qualcomm BAM dma driver

From: Arnd Bergmann <arnd@arndb.de>
Date: 2014-01-21 08:03:43
Also in: linux-arm-kernel, linux-arm-msm

On Monday 20 January 2014 16:52:45 Andy Gross wrote:
quoted
quoted
+#ifdef CONFIG_OF
+static const struct of_device_id bam_of_match[] = {
+	{ .compatible = "qcom,bam-v1.4.0", },
+	{ .compatible = "qcom,bam-v1.4.1", },
+	{}
+};
+MODULE_DEVICE_TABLE(of, bam_of_match);
+#endif
Also, you can remove the #ifdef here and the of_match_ptr() below.
If this is removed, then I'll have to add the OF dependency in the Kconfig,
correct?
I believe it will still compile without the CONFIG_OF dependency, but
having the dependency still makes sense as it's impossible to use the
driver without CONFIG_OF.

The best dependency line is probably

	depends on (ARCH_MSM && OF) || COMPILE_TEST"

If you expect the same driver to be used on non-MSM platforms from
qualcomm, e.g. some networking or server equipment, you can also just
drop the ARCH_MSM dependency.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help