summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2006-01-09 17:17:32 +0000
committerMauro Carvalho Chehab <devnull@localhost>2006-01-09 17:17:32 +0000
commit6807eba35cc91e109fed1df6038c424496cf2add (patch)
tree475351eb821b9e5a741faa5ba2f97e27cbf2e857 /linux/drivers/media/dvb/cinergyT2/cinergyT2.c
parent1faa3dcb3917ba99177697e1b8b4473e388744f8 (diff)
downloadmediapointer-dvb-s2-6807eba35cc91e109fed1df6038c424496cf2add.tar.gz
mediapointer-dvb-s2-6807eba35cc91e109fed1df6038c424496cf2add.tar.bz2
Several i2C cleanups to compile on both current linux and kernels >2.6.15
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/dvb/cinergyT2/cinergyT2.c')
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index 47b21f54d..ec1f39f1d 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -58,6 +58,7 @@ static int debug;
module_param_named(debug, debug, int, 0644);
MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off).");
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,15)
#define dprintk(level, args...) \
do { \
if ((debug & level)) { \
@@ -65,6 +66,15 @@ do { \
__FUNCTION__); \
printk(args); } \
} while (0)
+#else
+#define dprintk(level, args...) \
+do { \
+ if ((debug & level)) { \
+ printk("%s: %s(): ", KBUILD_MODNAME, \
+ __FUNCTION__); \
+ printk(args); } \
+} while (0)
+#endif
enum cinergyt2_ep1_cmd {
CINERGYT2_EP1_PID_TABLE_RESET = 0x01,