summaryrefslogtreecommitdiff
path: root/snd-alpx-dkms/snd-alpx/regmap-mmio.c
diff options
context:
space:
mode:
Diffstat (limited to 'snd-alpx-dkms/snd-alpx/regmap-mmio.c')
-rw-r--r--snd-alpx-dkms/snd-alpx/regmap-mmio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/snd-alpx-dkms/snd-alpx/regmap-mmio.c b/snd-alpx-dkms/snd-alpx/regmap-mmio.c
new file mode 100644
index 0000000..59c2007
--- /dev/null
+++ b/snd-alpx-dkms/snd-alpx/regmap-mmio.c
@@ -0,0 +1,9 @@
+#include <linux/version.h>
+
+#if KERNEL_VERSION(5, 14, 0) == LINUX_VERSION_CODE
+#include "core/generic/5.14/regmap-mmio.c"
+#elif KERNEL_VERSION(4, 19, 0) == LINUX_VERSION_CODE
+#include "core/generic/4.19/regmap-mmio.c"
+#else
+#error "Unsupported kernel version, backporting another version of regmap-mmio is required"
+#endif