diff options
author | Michael Krufky <devnull@localhost> | 2005-11-13 08:18:24 +0000 |
---|---|---|
committer | Michael Krufky <devnull@localhost> | 2005-11-13 08:18:24 +0000 |
commit | 9708f99de57bca0bdeaed6748713e839a7f15b22 (patch) | |
tree | ffad6ad18933c31df74b788383ddc9edaf098718 /linux | |
parent | 281b2bf8663c25990b806521ca581d3c860674d7 (diff) | |
download | mediapointer-dvb-s2-9708f99de57bca0bdeaed6748713e839a7f15b22.tar.gz mediapointer-dvb-s2-9708f99de57bca0bdeaed6748713e839a7f15b22.tar.bz2 |
Restore backwards compatability with kernel version 2.6.13
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drivers/media/dvb/cinergyT2/cinergyT2.c | 5 |
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); |