Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: dgap: Remove version check in dgap_kcompat.h

Code should be for the kernel version it is merged in.
Version check is not necessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Sachin Kamat and committed by
Greg Kroah-Hartman
3b33bd91 63c7cc2a

-29
-29
drivers/staging/dgap/dgap_kcompat.h
··· 28 28 #ifndef __DGAP_KCOMPAT_H 29 29 #define __DGAP_KCOMPAT_H 30 30 31 - # ifndef KERNEL_VERSION 32 - # define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) 33 - # endif 34 - 35 - 36 31 #if !defined(TTY_FLIPBUF_SIZE) 37 32 # define TTY_FLIPBUF_SIZE 512 38 33 #endif ··· 60 65 ulong dgap_##VAR; \ 61 66 module_param(VAR, long, PERM); \ 62 67 MODULE_PARM_DESC(VAR, DESC); 63 - 64 - 65 - 66 - 67 - 68 - #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27) 69 - 70 - 71 - 72 - 73 - /* NOTHING YET */ 74 - 75 - 76 - 77 - 78 - # else 79 - 80 - 81 - 82 - # error "this driver does not support anything below the 2.6.27 kernel series." 83 - 84 - 85 - 86 - # endif 87 68 88 69 #endif /* ! __DGAP_KCOMPAT_H */