backports: add dummy of_dma_configure()
authorJohannes Berg <johannes.berg@intel.com>
Tue, 7 Feb 2017 12:16:16 +0000 (13:16 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 7 Feb 2017 14:07:19 +0000 (15:07 +0100)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
backport/backport-include/linux/of_device.h [new file with mode: 0644]

diff --git a/backport/backport-include/linux/of_device.h b/backport/backport-include/linux/of_device.h
new file mode 100644 (file)
index 0000000..951b253
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef __BP_OF_DEVICE_H
+#define __BP_OF_DEVICE_H
+#include_next <linux/of_device.h>
+#include <linux/version.h>
+
+#if LINUX_VERSION_IS_LESS(4,1,0)
+static inline void of_dma_configure(struct device *dev, struct device_node *np)
+{}
+#endif /* < 4.1.0 */
+
+#endif /* __BP_OF_DEVICE_H */