summaryrefslogtreecommitdiff
path: root/backport/compat/backport-4.12.c
diff options
context:
space:
mode:
Diffstat (limited to 'backport/compat/backport-4.12.c')
-rw-r--r--backport/compat/backport-4.12.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/compat/backport-4.12.c b/backport/compat/backport-4.12.c
index 413ae7f1..4f9de261 100644
--- a/backport/compat/backport-4.12.c
+++ b/backport/compat/backport-4.12.c
@@ -3,6 +3,7 @@
#endif
#ifdef CONFIG_OF
+#if LINUX_VERSION_IS_GEQ(4,4,0)
/**
* of_device_modalias - Fill buffer with newline terminated modalias string
*/
@@ -20,3 +21,4 @@ ssize_t bp_of_device_modalias(struct device *dev, char *str, ssize_t len)
}
EXPORT_SYMBOL_GPL(bp_of_device_modalias);
#endif
+#endif