summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index dc980f9e4..47bfac557 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -31,6 +31,7 @@
#include <linux/input.h>
#include <linux/dvb/frontend.h>
+#include "compat.h"
#include "dmxdev.h"
#include "dvb_demux.h"
#include "dvb_net.h"
@@ -929,7 +930,11 @@ static int cinergyt2_suspend (struct usb_interface *intf, pm_message_t state)
if (cinergyt2->disconnect_pending || down_interruptible(&cinergyt2->sem))
return -ERESTARTSYS;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
+ if (state > 0) {
+#else
if (state.event > PM_EVENT_ON) {
+#endif
struct cinergyt2 *cinergyt2 = usb_get_intfdata (intf);
#ifdef ENABLE_RC
cancel_delayed_work(&cinergyt2->rc_query_work);