summaryrefslogtreecommitdiff
path: root/compat/drivers-base-devcoredump.c
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2017-07-04 11:53:51 +0200
committerDominik Sliwa <dominik.sliwa@toradex.com>2017-08-21 17:21:16 +0200
commit84d6642e4d1609562abb421341c9a90c023247a1 (patch)
treeffcc2b23e887c7d5615303067978e185e67072cc /compat/drivers-base-devcoredump.c
parent52409fae3e4b8d16b68b61902fc09075cd97b75d (diff)
backports:fix compilation with toradex kernels
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'compat/drivers-base-devcoredump.c')
-rw-r--r--compat/drivers-base-devcoredump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/drivers-base-devcoredump.c b/compat/drivers-base-devcoredump.c
index 0c7b7d3..27be55a 100644
--- a/compat/drivers-base-devcoredump.c
+++ b/compat/drivers-base-devcoredump.c
@@ -184,7 +184,9 @@ static struct class devcd_class = {
#if LINUX_VERSION_IS_GEQ(3,11,0)
.dev_groups = devcd_dev_groups,
#endif
+#if LINUX_VERSION_IS_GEQ(4,10,0)
.class_groups = devcd_class_groups,
+#endif
};
static ssize_t devcd_readv(char *buffer, loff_t offset, size_t count,