From 6fb0b6bed65b9df6e34e83c84878cf002394f676 Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 3 Dec 2020 12:05:11 -0600 Subject: Fix supercap power-down feature for 4.19 kernel --- io-module/mts_io_module.h | 2 +- io-module/mts_supercap.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'io-module') diff --git a/io-module/mts_io_module.h b/io-module/mts_io_module.h index 301b853..0af9e06 100644 --- a/io-module/mts_io_module.h +++ b/io-module/mts_io_module.h @@ -5,7 +5,7 @@ * MTAC cards. */ -#define DRIVER_VERSION "v4.5.0" +#define DRIVER_VERSION "v4.5.1" #define DRIVER_AUTHOR "Multitech Systems" #define DRIVER_DESC "MTS-IO Controller" #define DRIVER_NAME "mts-io" diff --git a/io-module/mts_supercap.h b/io-module/mts_supercap.h index 871346d..bbe5529 100644 --- a/io-module/mts_supercap.h +++ b/io-module/mts_supercap.h @@ -3,6 +3,10 @@ #include #include +#include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0) +#include +#endif #include "mts_io.h" #include "mts_io_module.h" -- cgit v1.2.3