summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/wm8739.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/wm8739.c')
-rw-r--r--linux/drivers/media/video/wm8739.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/linux/drivers/media/video/wm8739.c b/linux/drivers/media/video/wm8739.c
index d448dcf6e..b361d0d42 100644
--- a/linux/drivers/media/video/wm8739.c
+++ b/linux/drivers/media/video/wm8739.c
@@ -31,10 +31,6 @@
#include <media/v4l2-common.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-i2c-drv.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
-#include "i2c-compat.h"
-#include <linux/slab.h>
-#endif
#include "compat.h"
MODULE_DESCRIPTION("wm8739 driver");
@@ -43,21 +39,13 @@ MODULE_LICENSE("GPL");
static int debug;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
module_param(debug, int, 0644);
-#else
-MODULE_PARM(debug, "i");
-#endif
MODULE_PARM_DESC(debug, "Debug level (0-1)");
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
static unsigned short normal_i2c[] = { 0x34 >> 1, 0x36 >> 1, I2C_CLIENT_END };
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 13)
-static unsigned short normal_i2c_range[] = { I2C_CLIENT_END };
-#endif
-
I2C_CLIENT_INSMOD;
#endif
@@ -345,14 +333,7 @@ static struct v4l2_i2c_driver_data v4l2_i2c_data = {
.command = wm8739_command,
.probe = wm8739_probe,
.remove = wm8739_remove,
-#ifndef I2C_CLASS_TV_ANALOG
- .legacy_id = I2C_HW_B_CX2341X,
-#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)
.id_table = wm8739_id,
#endif
};
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
-EXPORT_NO_SYMBOLS;
-#endif