From 767fbfe0ea65ec79c4ed38b780bfbbb31be01857 Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Wed, 23 Nov 2005 06:35:50 +0000 Subject: Restore backwards compatability with kernel version 2.6.12 Signed-off-by: Michael Krufky --- linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 6 ++++++ linux/drivers/media/dvb/dvb-core/dvbdev.c | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'linux/drivers/media/dvb/dvb-core') 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) { -- cgit v1.2.3