diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvbdev.c | 4 |
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) { |