summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-core
diff options
context:
space:
mode:
authorMichael Krufky <devnull@localhost>2005-11-23 06:35:50 +0000
committerMichael Krufky <devnull@localhost>2005-11-23 06:35:50 +0000
commit767fbfe0ea65ec79c4ed38b780bfbbb31be01857 (patch)
tree34761dcda076b2dcb52146a7e6692648f43b771a /linux/drivers/media/dvb/dvb-core
parent25fc5f8a4bda8d4d2a6311178d3f9c80fde2a5c3 (diff)
downloadmediapointer-dvb-s2-767fbfe0ea65ec79c4ed38b780bfbbb31be01857.tar.gz
mediapointer-dvb-s2-767fbfe0ea65ec79c4ed38b780bfbbb31be01857.tar.bz2
Restore backwards compatability with kernel version 2.6.12
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_frontend.c6
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvbdev.c4
2 files changed, 10 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
index 734b92085..b9ef5a89f 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -520,7 +520,13 @@ static int dvb_frontend_thread(void *data)
break;
}
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
try_to_freeze();
+#else
+ if (current->flags & PF_FREEZE) {
+ refrigerator (PF_FREEZE);
+ }
+#endif
if (down_interruptible(&fepriv->sem))
break;
diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c
index 477b4fa56..1ee4bd636 100644
--- a/linux/drivers/media/dvb/dvb-core/dvbdev.c
+++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c
@@ -56,7 +56,11 @@ static const char * const dnames[] = {
#define nums2minor(num,type,id) ((num << 6) | (id << 4) | type)
#define MAX_DVB_MINORS (DVB_MAX_ADAPTERS*64)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,13)
static struct class *dvb_class;
+#else
+static struct class_simple *dvb_class;
+#endif
static struct dvb_device* dvbdev_find_device (int minor)
{