summaryrefslogtreecommitdiff
path: root/backport-include/linux/of_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport-include/linux/of_device.h')
-rw-r--r--backport-include/linux/of_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/backport-include/linux/of_device.h b/backport-include/linux/of_device.h
index 951b253..9f621c6 100644
--- a/backport-include/linux/of_device.h
+++ b/backport-include/linux/of_device.h
@@ -3,6 +3,11 @@
#include_next <linux/of_device.h>
#include <linux/version.h>
+
+#if LINUX_VERSION_IS_LESS(4,12,0)
+ssize_t bp_of_device_modalias(struct device *dev, char *str, ssize_t len);
+#define of_device_modalias bp_of_device_modalias
+#endif
#if LINUX_VERSION_IS_LESS(4,1,0)
static inline void of_dma_configure(struct device *dev, struct device_node *np)
{}