summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-08-17 12:38:05 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2007-08-17 12:38:05 -0700
commitf2ead120937d5077a260732019a12e6ed6c6752e (patch)
tree853d010e2728ad23284c5f79dd8ec610e97179c5 /linux
parent4fefe837f00fab3129d41139be8a0e327cfdb496 (diff)
downloadmediapointer-dvb-s2-f2ead120937d5077a260732019a12e6ed6c6752e.tar.gz
mediapointer-dvb-s2-f2ead120937d5077a260732019a12e6ed6c6752e.tar.bz2
compat: Fix device_create compat code
From: Trent Piepho <xyzzy@speakeasy.org> The current compat code for device_create/destroy doesn't work properly for kernels 2.6.14 or below, and 2.6.18 to 2.6.23. For kernels 2.6.14 and below, the device_create/destroy compat code wasn't enabled. Those kernels need it too. For kernels 2.6.18 to 2.6.23, compat code _was_ getting including, which caused errors since 2.6.18 and above already have device_create and device_destroy. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index 564c57b79..b4165ddb3 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -211,7 +211,7 @@ int dvb_register_device(struct dvb_adapter *adap, struct dvb_device **pdvbdev,
{
struct dvb_device *dvbdev;
struct file_operations *dvbdevfops;
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,23)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,18)
struct device *clsdev;
#else
struct class_device *clsdev;